SA-MP Forums Archive
Invaild 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: Invaild expression assumed zero (/showthread.php?tid=570092)



Invaild expression assumed zero - kingcrome - 05.04.2015

Код HTML:
if (GetPlayerVehicleID(playerid) >= 15 && <= 19)
 {
  SendClientMessage(playerid, -1, "You have entered a pizzaboy bike, please"); //-1
  SendClientMessage(playerid, -1, "drive to the checkpoint to deliver pizza");
 }
Invalid expression assumed zero why??


Re: Invaild expression assumed zero - CalvinC - 05.04.2015

The correct usage would be
Код:
if (GetPlayerVehicleID(playerid) >= 15 && GetPlayerVehicleID(playerid) <= 19)



Re: Invaild expression assumed zero - kingcrome - 05.04.2015

Thanks bud.