07.04.2012, 18:27
[pawn]
if(strcmp("/jonesyboss", cmdtext, true))
[pawn]
You check if strcmp is true, but strcmp returns 0 when the strings are equal, and so the if condition is called when anything but /jonesyboss is typed.
Check it like this:
if(strcmp("/jonesyboss", cmdtext, true))
[pawn]
You check if strcmp is true, but strcmp returns 0 when the strings are equal, and so the if condition is called when anything but /jonesyboss is typed.
Check it like this:
pawn Код:
if(strcmp("/jonesyboss", cmdtext, true) == 0)
// or:
if(!strcmp("/jonesyboss", cmdtext, true))