18.11.2018, 17:55
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;
}
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;
}