Witam.
Problem jest taki,że za 3 miejsce prawidłowo przyznaje 100 expa natomiast za 2 miejsce przyznaje 300 expa (zadeklarowane 200),a za pierwsze miejsce 600 expa(zadeklarowane 300).
 
public przyznanie_doswiadczenia()
{
	
	new players[32], num;
	get_players(players, num, "h");
	
	new tempfrags, id;
	
	new swapfrags, swapid;
	
	new starfrags[3]; //0 - 3 miejsce / 1 - 2 miejsce / 2 - 1 miejsce
	new starid[3];
	
	for (new i = 0; i < num; i++)
	{
		id = players[i];
		new PobierzPD = pm_get_user_pd(id)
		tempfrags = get_user_frags(id);
		if ( tempfrags > starfrags[0])
		{
			starfrags[0] = tempfrags;
			starid[0] = id;
			Poke_Give_XP(starid[0], -1, 100);
	
			if ( tempfrags > starfrags[1])
			{
				swapfrags = starfrags[1];
				swapid = starid[1];
				starfrags[1] = tempfrags;
				starid[1] = id;
				starfrags[0] = swapfrags;
				starid[0] = swapid;
				Poke_Give_XP(starid[1], -1, 200);
				
				if ( tempfrags > starfrags[2])
				{
					swapfrags = starfrags[2];
					swapid = starid[2];
					starfrags[2] = tempfrags;
					starid[2] = id;
					starfrags[1] = swapfrags;
					starid[1] = swapid;
					Poke_Give_XP(starid[2], -1, 300);
					
				}
			}
		}
	}	
}
					
					

 
Dodatki SourceMod



	









