GetPVarString() possible bug.
#1

How come when I use

pawn Code:
new string[128];
GetPVarString(playerid,"Note",string,128);
It doesn't get the message which is 128 chars long, it returns <null>, instead I have to use 129 chars long string, to get it working properly.



Also in the dialog inputs, if you copy and paste the string longer than 128 chars , it can be pasted, but when you write by self, you can enter only 128 chars.


0.3z R4 server.
Reply
#2

About the PVar thing, I believe it's supposed to be like that to make room for the null terminator.

The dialog thing has been a bug since 0.3, so it's confirmed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)