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=660983)
error 029: invalid expression, assumed zero -
Ndun - 18.11.2018
Help me.
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
new
colorStr[24]
;
format(colorStr, sizeof(colorStr), "%d-%d", color1, color2);
setproperty(_, "", PROPERTY_OFFSET(vehicleid), colorStr); <--- error 029: invalid expression, assumed zero
if(funcidx("n_OnVehicleRespray") != -1)
{
return CallLocalFunction("n_OnVehicleRespray", "iiii", playerid, vehicleid, color1, color2);
}
return 1;
}