02.01.2011, 18:24
ok i got a problem with GetVehicleParamsEx && SetVehicleParamsEx
heres my code
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??
...........
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;
}
And when i remove it it works perfectly why is that??
...........

