05.08.2013, 10:12
I don't think he does. And after the loop, you have a semicolon which is not correct.
Download the foreach include or use:
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;
}