Strange "Error 010" - 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: Strange "Error 010" (
/showthread.php?tid=417582)
Strange "Error 010" -
Grimrandomer - 21.02.2013
Hey all, Im getting some realy strange errors:
pawn Код:
../include/core/zones.inc(961) : error 010: invalid function or declaration
../include/veh/veh.inc(504) : error 010: invalid function or declaration
(zones.inc) Lines 961 to 970:
pawn Код:
setZoneTDs(playerid,state) {
if (GetPVarInt(playerid, "playerZoneOpen") == 1) {
if (state == 0) {
TextDrawShowForPlayer(playerid,zoneTextDraw[playerid]);
}
else {
TextDrawHideForPlayer(playerid,zoneTextDraw[playerid]);
}
}
}
(veh.inc) Lines 504 to 518:
pawn Код:
setVehTDs(playerid,state) {
if (GetPVarInt(playerid, "playerVDispOpen")==1) {
if (state==0) {
TextDrawShowForPlayer(playerid,players[playerid][fuelText]);
TextDrawShowForPlayer(playerid,players[playerid][speedText]);
TextDrawShowForPlayer(playerid,players[playerid][helpText]);
}
else {
TextDrawHideForPlayer(playerid,players[playerid][fuelText]);
TextDrawHideForPlayer(playerid,players[playerid][speedText]);
TextDrawHideForPlayer(playerid,players[playerid][helpText]);
}
}
}
Re: Strange "Error 010" -
Vince - 21.02.2013
state is a reserved keyword and thus may not be used as the name of a variable.
Re: Strange "Error 010" -
Grimrandomer - 21.02.2013
Ahh ok, thanks