Some help Respawn car timer
#5

Quote:
Originally Posted by NotoriousMOB
Посмотреть сообщение
pawn Код:
(48177) : error 036: empty statement
(48179) : error 017: undefined symbol "car"
(48179) : error 017: undefined symbol "car"

That's :

pawn Код:
for(new car; car <= VEHICLES_IN_SERVER; car++);
    {
    if( !VehicleOccupied[car] ) SetVehicleRespawn(car);
Sorry, typo. Try this:
pawn Код:
public SetVehicleRespawn()
{
    #define VEHICLES_IN_SERVER MAX_VEHICLES

    new bool:VehicleOccupied[VEHICLES_IN_SERVER] = false, MAX_PLAYER_IN_SERVER = GetMaxPlayers();

    for(new player; player <= MAX_PLAYER_IN_SERVER; player++)
    {
        if( IsPlayerInAnyVehicle(player) ) VehicleOccupied[GetPlayerVehicleID(player)] = true;
    }
    for(new car; car <= VEHICLES_IN_SERVER; car++)
    {
        if( !VehicleOccupied[car] ) SetVehicleToRespawn(car);
    }
    SendClientMessageToAll(COLOR_WHITE,"All vehicles has been respawned!");
}
Reply


Messages In This Thread
CarRespawn - by NotoriousMOB - 07.12.2010, 15:56
Re: Some help Respawn car timer - by NotoriousMOB - 07.12.2010, 21:17
Re: Some help Respawn car timer - by TheXIII - 07.12.2010, 22:09
Re: Some help Respawn car timer - by NotoriousMOB - 07.12.2010, 22:19
Re: Some help Respawn car timer - by TheXIII - 07.12.2010, 23:07
Re: Some help Respawn car timer - by NotoriousMOB - 07.12.2010, 23:17
Re: Some help Respawn car timer - by TheXIII - 07.12.2010, 23:43
Re: Some help Respawn car timer - by NotoriousMOB - 07.12.2010, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)