How to fix this? - 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)
+--- Thread: How to fix this? (
/showthread.php?tid=363314)
How to fix this? -
Rickeman - 27.07.2012
Hello,
I'm working on a team selection and I get this error:
I added the #DEFINE and all the stuff.
Someone knows how to fix this?
Thanks.
Re: How to fix this? -
ReneG - 27.07.2012
You can't make a function inside of a callback.
You can only call it.
Re: How to fix this? -
Rickeman - 27.07.2012
What I have to do to get it working?
Re: How to fix this? -
mrsamp - 27.07.2012
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid);
return 1;
}
SetPlayerTeamFromClass(playerid, classid)
And here all your if(classid = 0) etc
but I can fix me if you give me the whole code from the first error line to the last if(classid = x) You know?
Not 100%sure if it works...