19.08.2013, 19:11
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])