Genuine Confusion
#5

Well, you wouldn't need to use a switch or check any variable to obtain the correct ID as you're already obtaining it from the variable. However, it is not possible to do it using switch.

Do this:
Код:
if( variable >= 1 && variable <= pInfo[playerid][CarSlots] )
Change the "variable" name accordingly.
Reply


Messages In This Thread
Genuine Confusion - by Zonoya - 30.08.2015, 18:23
Re: Genuine Confusion - by Zonoya - 31.08.2015, 17:20
Re: Genuine Confusion - by Marricio - 31.08.2015, 17:53
Re: Genuine Confusion - by Zonoya - 31.08.2015, 18:05
Re: Genuine Confusion - by Marricio - 31.08.2015, 18:12
Re: Genuine Confusion - by Zonoya - 31.08.2015, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)