04.08.2010, 15:05
Lol.. I actually saw the error now: for(new i = 0; i < MAX_VEHICLES; i++) I wrote new 1..
Thanks for the help!
EDIT:
Thats the code now.. The ClientMessage is being sent, but the vehicles doesnt respawn. Whats the problem now?
Thanks for the help!
EDIT:
pawn Код:
dcmd_vrespawn(playerid,params[])
{
#pragma unused params
if(pi[playerid][admin] <= 0) return 0;
if(sscanf(params,"u"))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SendClientMessageToAll(COLOUR_YELLOW,"All unoccupied vehicles has been respawned");
SetVehicleToRespawn(i);
return 1;
}
}
return 1;
}