Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use A from commandline in if
#2
The type of the value variable is lpstr. When using == with a lpstr variable, it compares pointers to strings, not strings. To compare strings, use strcmp or q_stricmp. These functions return 0 if strings are equal. Or, use sel.

Code:
Copy      Help
if(!strcmp(value "destroy")) ja
;or
sel(value) case "destroy" ja

_s is local str variable. _i is local int variable. These variables are used without declaring.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)