SA-MP Forums Archive
What's wrong? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What's wrong? (/showthread.php?tid=66365)



What's wrong? - Henrix - 21.02.2009

Код:
		else if(classid >= 59)
	{
		format(string, sizeof(string), "~w~Tekst1");
		GameTextForPlayer(playerid,string,1000,6);
	}
		else if(classid >= 60)
	{
		format(string, sizeof(string), "~p~Tekst2");
		GameTextForPlayer(playerid,string,1000,6);
	}
	  else if(classid >= 61)
	{
		format(string, sizeof(string), "~b~Tekst3");
		GameTextForPlayer(playerid,string,1000,6);
	}
But, it says at all the skins Tekst1


Re: What's wrong? - yom - 21.02.2009

You know what "else if" mean? It's like, "if previous condition is false, then try this".

Use a switch statement or replace >= with ==.


Re: What's wrong? - wynk14 - 21.02.2009

hello I bew hear
i living in croata
how i can play multipleyer