GetPlayerVehicleID
#10

Quote:
Originally Posted by Knappen
Посмотреть сообщение
Correction
new Storage[MAX_PLAYERS]; // Global

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    new Storage[i] = GetPlayerVehicleID(i);
    //code (What you want to do with it)
}
NO!, As you ONLY want to alter that iformaton for INSIDE THAT FUNCTION, I'm fed up with this thread being bumped!

He Only needs the vehicle ID for the cars the players are currantly in for refueling. HE DOES NOT need to have this sotred forever, it should be destroyed once the function has ran its course, if you do this will all your varialbes condgradulate your self on create a RAM hogging gamemode.

If thats what hes doing, if he wants all cars change it to all cars(Max Vehicles) he can, I cant even remember what hes doing but it doesn't require a global variable!

STOP bumping this thread when the CORRECT answer has been given unless you have something USEFUL to add!
Reply


Messages In This Thread
GetPlayerVehicleID - by ryanhawk31 - 08.05.2013, 14:19
Re: GetPlayerVehicleID - by IceCube! - 08.05.2013, 14:24
Re: GetPlayerVehicleID - by ryanhawk31 - 08.05.2013, 14:31
Re: GetPlayerVehicleID - by IceCube! - 08.05.2013, 14:44
Respuesta: GetPlayerVehicleID - by LoLeRo - 08.05.2013, 14:47
Re: Respuesta: GetPlayerVehicleID - by IceCube! - 08.05.2013, 14:49
Respuesta: Re: Respuesta: GetPlayerVehicleID - by LoLeRo - 08.05.2013, 14:51
Re: GetPlayerVehicleID - by IceCube! - 08.05.2013, 14:55
Re: GetPlayerVehicleID - by Knappen - 08.05.2013, 22:50
Re: GetPlayerVehicleID - by IceCube! - 08.05.2013, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)