02.02.2014, 03:16
Quote:
I downloaded another GM wthat uses zcmd and sscanf to see if I could get a tip from there.
pawn Код:
EDIT: Saw what you said now and understand why strcmp is being used. Thanks! |
The command checks for strings when it should check for an integer: "[Usage]: /sign [1-4]" 1-4 is a numeric input, therefor sscanf should read an integer, not a string:
pawn Код:
new anim;
sscanf(params,"i",anim);
strcmp is for strings, (str prefix (string), cmp suffix (compare)), it essentialy compares two strings. That command should be done with integers, not with strings.