SA-MP Forums Archive
error 029: invalid expression, assumed zero - 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 029: invalid expression, assumed zero (/showthread.php?tid=492678)



error 029: invalid expression, assumed zero - Crypto20 - 04.02.2014

Thread Now closed
Thanks for the people below who helped me fix it.
I guess i must have just been tired and not noticing what i did there.


Re: error 029: invalid expression, assumed zero - Borg - 04.02.2014

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 10.0, -2450.6028, 161.1246, 35.1210) || !IsPlayerInRangeOfPoint(playerid, 4.0, 2958.0425, -1393.6724, 5.5500)) || !IsPlayerInRangeOfPoint(playerid, 4.0, 1509.5452,-1690.5376,13.2922,271.6911))
        return SendClientMessage(playerid, COLOR_GREY, "You are not at the point.");



Respuesta: error 029: invalid expression, assumed zero - EduGTA - 04.02.2014

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 10.0, -2450.6028, 161.1246, 35.1210) || !IsPlayerInRangeOfPoint(playerid, 4.0, 2958.0425, -1393.6724, 5.5500) || !IsPlayerInRangeOfPoint(playerid, 4.0, 1509.5452,-1690.5376,13.2922,271.6911))
        return SendClientMessage(playerid, COLOR_GREY, "You are not at the point.");
You got an extra ")" and a ";" at the end of the "if", try now...