Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
hmm what?
u mean u cant use strcmp?
have u got #include <a_samp> at top?
Posts: 41
Threads: 9
Joined: Dec 2007
Reputation:
0
No I mean using cmdtext[i] (i = 0..127) will "crash" the function (OnPlayerCommandText()), like if it has a return; in it.
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
Can you tlel me where ur using cmdtext[i] in?
since i know onPlayerCommandText u should use strcmp(cmdtext, bla bla bla
where your using it in?
Posts: 41
Threads: 9
Joined: Dec 2007
Reputation:
0
No it's similar to strtok, I didn't give the whole script.
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
You need to show more code, because the problem shouldn't be there.
Posts: 41
Threads: 9
Joined: Dec 2007
Reputation:
0
No, the problem is here. A print() before the while() works, not after.
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
Did you try a print inside the loop?