08.05.2013, 14:19
Hi i need something like GetPlayerVehicleID thats get all the vehicle id's
Anyone help?
Anyone help?
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Storage = GetPlayerVehicleID(i);
//code (What you want to do with it)
}
for(new i = 0; i < MAX_PLAYERS; i++) { for(new cars=0; cars<MAX_VEHICLES; cars++) { //function } } |
Why do a loop of all the cars for each player? Thats pointless your repeating the task for the deafult 500 players... if unaltered...
|
Of all the Players...
pawn Код:
|
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Storage[i] = GetPlayerVehicleID(i);
//code (What you want to do with it)
}
Correction
new Storage[MAX_PLAYERS]; // Global pawn Код:
|