Question
#1

How do you do (with strcmp, preferred) to check if the params is not ANY of these?

pawn Код:
new szAvailableName[9][28];
    szAvailableName[0] = "Meth";
    szAvailableName[1] = "Cocaine";
    szAvailableName[2] = "Heroin";
    szAvailableName[3] = "Speed";
    szAvailableName[4] = "Opium";
    szAvailableName[5] = "Weed";
    szAvailableName[6] = "Extacy";
    szAvailableName[7] = "Crack";
    szAvailableName[8] = "Glue";
If the params are not any of these it will return something.

Thanks.
Reply


Messages In This Thread
Question - by admantis - 02.04.2011, 01:17
Re: Question - by bigcomfycouch - 02.04.2011, 01:32
Respuesta: Question - by admantis - 02.04.2011, 01:37
Re: Respuesta: Question - by mprofitt - 02.04.2011, 01:40
Respuesta: Question - by admantis - 02.04.2011, 01:41
Re: Question - by Donya - 02.04.2011, 01:42
Re: Question - by bigcomfycouch - 02.04.2011, 01:43
Respuesta: Question - by admantis - 02.04.2011, 01:46

Forum Jump:


Users browsing this thread: 2 Guest(s)