Error: Undefined Symbol wtf? - 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: Error: Undefined Symbol wtf? (
/showthread.php?tid=221445)
Error: Undefined Symbol wtf? -
XoX - 05.02.2011
I made a new variable to set a enabled/disabled stat but Pawno gives me a undefined symbol error. Why?
Re: Error: Undefined Symbol wtf? -
admantis - 05.02.2011
Please show the code ..
. This happens because you have an un defined array / variable / statement ..
Re: Error: Undefined Symbol wtf? -
XoX - 05.02.2011
Ok
i did that on the top of the script
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if (State[playerid] > 0)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
SendClientMessage(playerid, lightred, "You can't exit during Mission");
return 1;
}
Edit: i also did a command using zcmd containing
Re: Error: Undefined Symbol wtf? -
admantis - 05.02.2011
Change new State; to State[MAX_PLAYERS];
Re: Error: Undefined Symbol wtf? -
XoX - 05.02.2011
I've also tried that. Same problem.
Re: Error: Undefined Symbol wtf? -
MadeMan - 05.02.2011
Do you have these lines in your script?
Re: Error: Undefined Symbol wtf? -
XoX - 05.02.2011
OMG i forgot to add #endif -.- thank you so much