OnPlayerStateChange
#3

When you put arrays you must use index it

Код:
defining

new WHATEVER[NUMBER_OF_SLOTS] //MAX_VEHICLES i think it is 2000

storing variables in the array:
WHATEVER[0] = CreateVehicle(..); //THE ARRAY SLOT 0
WHATEVER[1] = CreateVehicle(..); //THE ARRAY SLOT 0
WHATEVER[2] = CreateVehicle(..); //THE ARRAY SLOT 0

//note: do not cross the limit when you storing the data (the array id must be lover for 1 of the number of slots in the array), in this case the "NUMBER_OF_SLOTS" is 3 - 3 slots;

checking:

if(GetPlayerVehicleID(playerid) == WHATEVER[THE_ARRAY_ID_TO_CHECK_THE_DATA_THAT-IS_STORED_IN_THE_ARRAY_ID])
Reply


Messages In This Thread
OnPlayerStateChange - by Ananisiki - 19.08.2013, 18:55
Re: OnPlayerStateChange - by Vanter - 19.08.2013, 19:02
Re: OnPlayerStateChange - by Pasa - 19.08.2013, 19:11
Re: OnPlayerStateChange - by Ananisiki - 19.08.2013, 20:35
Re: OnPlayerStateChange - by Ananisiki - 20.08.2013, 22:53
Re: OnPlayerStateChange - by nor15 - 20.08.2013, 22:56
Re: OnPlayerStateChange - by Youarex - 20.08.2013, 23:48
Re: OnPlayerStateChange - by xganyx - 21.08.2013, 00:57

Forum Jump:


Users browsing this thread: 2 Guest(s)