VehicleParamsEx???
#1

ok i got a problem with GetVehicleParamsEx && SetVehicleParamsEx
heres my code
pawn Код:
if(strcmp(cmdtext, "/engineoff", true) == 0)
{
new vehicle = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xCC0000FF, "ERROR : You must be inside a vehicle to use this command.");
GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicle,0,lights,alarm,doors,bonnet,boot,objective);
return 1;
}
When i put it into my GameMode the hole GameMode messes up no commands working nothing
And when i remove it it works perfectly why is that??


...........
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)