SA-MP Forums Archive
Set/GetPVarString bug help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Set/GetPVarString bug help (/showthread.php?tid=589725)



Set/GetPVarString bug help - BKarner - 21.09.2015



If you look at the image above, "Gender" is being added onto the end of "DateOfBirth" and I have absolutely no idea why.


Re: Set/GetPVarString bug help - Jefff - 21.09.2015

Try to change
new dateofbirth[10]; to 11 because length of "01/01/2015" is 10 and you need +1 for NULL


Re: Set/GetPVarString bug help - BKarner - 25.09.2015

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Try to change
new dateofbirth[10]; to 11 because length of "01/01/2015" is 10 and you need +1 for NULL
Sorry for the bump. This worked. Thank you very much.
+Repped.