30.10.2010, 04:31
(
Последний раз редактировалось Infinitas; 30.10.2010 в 04:50.
Причина: typos
)
Im trying to get this script to work. Basically the idea is to respawn all cars that are unused. So if someone is IN the car, it doesn't get respawn. the code
is not compiling and it gives me errors. i have no clue what the problem is. if i take it out it compiles fine. but if someone is driving a car WITHOUT that line in it will kick them out and respawn the car.
full script:
any help is appreciated.
thank you
Код:
{ if(IsPlayerInAnyVehicle(playerid) { unwanted[GetPlayerVehicleID(playerid])=true; } }
full script:
Код:
if(strcmp(cmd, "/respawnallcars", true) == 0) { format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------"); SendClientMessageToAll(COLOR_WHITE,string); format(string, sizeof(string), "AP:RP SERVER NOTICE"); SendClientMessageToAll(COLOR_BRIGHTRED,string); format(string, sizeof(string)," An AP:RP Staff Member has respawned all vehicles",giveplayer); SendClientMessageToAll(COLOR_GREY,string); format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------"); SendClientMessageToAll(COLOR_WHITE,string); printf("%s",string); { if(IsPlayerInAnyVehicle(playerid) { unwanted[GetPlayerVehicleID(playerid])=true; } } for(new v = 0; v <= MAX_VEHICLES; v++) SetVehicleToRespawn(v); }
thank you