stock isvehicleoccupied error
#3

I don't think he does. And after the loop, you have a semicolon which is not correct.

Download the foreach include or use:
pawn Код:
stock IsVehicleOccupied( vehicleid )
{
    for( new i = 0; i < MAX_PLAYERS; i++ )
    {
        if( IsPlayerConnected( i ) )
        {
            if( IsPlayerInVehicle( i, vehicleid ) ) return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
stock isvehicleoccupied error - by Lisaax - 05.08.2013, 09:56
Re: stock isvehicleoccupied error - by Necip - 05.08.2013, 10:03
Re: stock isvehicleoccupied error - by Konstantinos - 05.08.2013, 10:12
Re: stock isvehicleoccupied error - by Lisaax - 05.08.2013, 15:38
Re : stock isvehicleoccupied error - by Matnix - 05.08.2013, 15:40
Re: stock isvehicleoccupied error - by Smokeyy - 05.08.2013, 15:41
Re: stock isvehicleoccupied error - by Konstantinos - 05.08.2013, 15:42

Forum Jump:


Users browsing this thread: 2 Guest(s)