SA-MP Forums Archive
GetPVarString() possible bug. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetPVarString() possible bug. (/showthread.php?tid=569064)



GetPVarString() possible bug. - ikey07 - 27.03.2015

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.


Re: GetPVarString() possible bug. - Emmet_ - 28.03.2015

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.