25.07.2012, 14:10
Quote:
Hmm. What is this cmdtext[4] actually for? For me it kinda seems useless but I don't think the problem is going to be fixed by that. But who knows?
Well in my opinion your script should work fine, if it's not that cmdtext-part. |
!cmdtext[4] is same as cmdtext[4]==0 and that is same as cmdtext[4]='\0' ( or cmdtext[4]=EOS, EndOfString).
In this case:
pawn Код:
if(!cmdtext[4]) /*is same as */ if(strlen(cmdtext)==strlen("/std"))