19.08.2013, 13:30
(
Последний раз редактировалось Cypress; 19.08.2013 в 15:13.
)
Quote:
Well that will work but you don't want to keep calling the same function every iteration it should actually look like this.
pawn Код:
|
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i; i < sizeof(CGLSVehicles); i++)
{
if(vehicleid == CGLSVehicles[i]) // LINE 656
{
//Do stuff, they're in one of your vehicle!
break; //Stop the loop, we don't need it anymore.
}
}
return 1;
}