SA-MP Forums Archive
stock function give some erros - 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: stock function give some erros (/showthread.php?tid=255802)



stock function give some erros - BritishBoy - 17.05.2011

Why do I get these error by this part of my script:

http://pastebin.com/nHVvHdUN


Re: stock function give some erros - Seven_of_Nine - 17.05.2011

Do like
pawn Код:
case 0: "Hi, how are you?";
case 1: "Szia, hogy vagy?";
And so on. But you can do like this too:
pawn Код:
case 0: {
SendClientTroll(playerid,"Hi");
SendClientTroll(playerid,"I'm Troll :)");
}



Re: stock function give some erros - BritishBoy - 17.05.2011

Quote:
Originally Posted by ******
Посмотреть сообщение
The numbers on the case statements are in the wrong place - they should be before the colon, not after.
Oh >.> I didn't see that

Thx!