27.09.2018, 20:55
Why don't you use a multi dimensional array for the radio freq and do:
Then assign the slots -1 by default (which means invalid).
To find a slot simply loop through it, the first slot that is -1 will be the new slot you can use.
This will also allow you to change the amount of slots at any time dynamically, if you ever need more.
Код:
pInfo[playerid][pRadioFreq][slot] = value;
To find a slot simply loop through it, the first slot that is -1 will be the new slot you can use.
This will also allow you to change the amount of slots at any time dynamically, if you ever need more.