SA-MP Forums Archive
Warning sscanf - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning sscanf (/showthread.php?tid=124105)



Warning sscanf - Zafire2008 - 28.01.2010

I got an error in my code and said this

sscanf warning: Strings without a length are deprecated, please add a destination size.

Heree is my sscanf line

Код:
sscanf(line, "p<.>issiiiiiiiifffiii", pinfo[playerid][id], pinfo[playerid][nombre], pinfo[playerid][pass], pinfo[playerid][nivel], pinfo[playerid][dinero], pinfo[playerid][trabajo], pinfo[playerid][admin], pinfo[playerid][online], pinfo[playerid][phone], pinfo[playerid][banco], pinfo[playerid][skin], pinfo[playerid][px], pinfo[playerid][py], pinfo[playerid][pz], pinfo[playerid][hp], pinfo[playerid][armor], pinfo[playerid][sp]);
I dont know how to fix that error can help me? please, thx


Re: Warning sscanf - mansonh - 28.01.2010

related: http://forum.sa-mp.com/index.php?topic=148659.0



Re: Warning sscanf - Zafire2008 - 28.01.2010

Quote:
Originally Posted by mansonh
that topic is another question.... the code works there but giveee me that error so i am asking that eerros here :S