how to find case's value
#4

Why don't you use a multi dimensional array for the radio freq and do:

Код:
pInfo[playerid][pRadioFreq][slot] = value;
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.
Reply


Messages In This Thread
sscanf warning: Format specifier does not match parameter count. - by Zeus666 - 27.09.2018, 20:52
Re: how to find case's value - by GospodinX - 27.09.2018, 20:53
Re: how to find case's value - by Zeus666 - 27.09.2018, 20:55
Re: how to find case's value - by NaS - 27.09.2018, 20:55
Re: how to find case's value - by GospodinX - 27.09.2018, 20:58
Re: how to find case's value - by Zeus666 - 27.09.2018, 21:00
Re: how to find case's value - by GospodinX - 27.09.2018, 21:07
Re: how to find case's value - by Zeus666 - 27.09.2018, 21:13

Forum Jump:


Users browsing this thread: 3 Guest(s)