14.07.2015, 15:40
How can I make it so when you enter a certain vehicle it gives you a message in the chat?
My code:
Code error:
(449) : warning 209: function "OnPlayerEnterVehicle" should return a value
My code:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid) { new v = GetVehicleModel(GetPlayerVehicleID(playerid)); if(v == 455) { SendClientMessage(playerid, COLOR_YELLOW,"Go near the storage area and do /work to start your sidejob as a trucker!"); return 1; } }
(449) : warning 209: function "OnPlayerEnterVehicle" should return a value