Error Tag - 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: Error Tag (
/showthread.php?tid=498739)
Deleted -
LustcheR - 04.03.2014
Deleted
Re: Error Tag -
mahardika - 04.03.2014
pawn Код:
if(Speedo[playerid] == true && newstate == PLAYER_STATE_DRIVER)
Re: Error Tag -
r3ct - 05.03.2014
The above code will still show the error.
just declare the variable as a bool.
new bool:Speedo[MAX_PLAYERS char];
Not sure if this is a good use for that there or not but that should compile just fine.
Re: Error Tag -
mahardika - 05.03.2014
r3ct is right
so the code will like this
pawn Код:
new bool:Speedo[MAX_PLAYERS char];
pawn Код:
if(Speedo[playerid] == true && newstate == PLAYER_STATE_DRIVER)
Re: Error Tag -
Threshold - 05.03.2014
Correction (again):
pawn Код:
new bool:Speedo[MAX_PLAYERS char];
//OnPlayerStateChange...
if(Speedo{playerid} && newstate == PLAYER_STATE_DRIVER)