Weird things on OnPlayerText
#1

Hello,
when I try to do some functions like strins or text[k] = text[k - 6] with the string "text" from the callback,
Everything will crash and the whole OnPlayerText callback will terminate and do things like returning 1 in the callback.
I am doing that strins/array assigns in another function.

However, when I try to copy the "text" string to another string variable declared inside the callback,
everything works perfectly.

So what's the problem?
Reply
#2

let's take a look:
pawn Код:
array[0] = array[0-6] // array[0] = array[-6]
..
Reply
#3

I ensured that the k must be larger than 6 since its min value is pos + 6,which pos is the position for searching the string.
Also, the strins also cause error there, so cell overflow isn't the problem.
Reply
#4

Any idea
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)