29.06.2011, 12:26
Well, I tried making a command to set a car invicible, but its giving me this error:
D:\SAMP\gamemodes\MMM.pwn(14910) : error 017: undefined symbol "vehicleid"
What would be the smartest way to get the id of the vehicle the person currently is in?
D:\SAMP\gamemodes\MMM.pwn(14910) : error 017: undefined symbol "vehicleid"
What would be the smartest way to get the id of the vehicle the person currently is in?
pawn Код:
if(strcmp(cmdtext,"/cargodmode",true) == 0)
{
GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 10000000000);
SendClientMessage(playerid,COLOR_ARED, "Vehicle made indestructable");
}
return 1;
}