/vrespawn
#4

Lol.. I actually saw the error now: for(new i = 0; i < MAX_VEHICLES; i++) I wrote new 1..


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;
}
Thats the code now.. The ClientMessage is being sent, but the vehicles doesnt respawn. Whats the problem now?
Reply


Messages In This Thread
/vrespawn - by Dolph - 04.08.2010, 14:55
Re: /vrespawn - by Jeffry - 04.08.2010, 14:57
Re: /vrespawn - by Mike Garber - 04.08.2010, 15:00
Re: /vrespawn - by Dolph - 04.08.2010, 15:05
Re: /vrespawn - by Dolph - 04.08.2010, 15:35
Re: /vrespawn - by Hiddos - 04.08.2010, 15:40
Re: /vrespawn - by Mike Garber - 04.08.2010, 15:40
Re: /vrespawn - by Hiddos - 04.08.2010, 15:47
Re: /vrespawn - by Jeffry - 04.08.2010, 16:26
Re: /vrespawn - by Nero_3D - 04.08.2010, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)