03.10.2012, 21:30
Quote:
Create weapon array, under command add string variable( weapon[20], for example), and then do a loop something like:
Код:
for(new i; i < sizeof(sWeapons); i++) { if(strcmp(sWeapons[i], weapon) == 0) { // Do smth if weapon that player entered is same with some weapon from the array } } |
Quote:
I would say look up the "k" specifier to write a custom sscanf specifier.
|
Thanks i'll take a look about sscanf topic.