Problem with sscanf
#1

I've got that error:
Quote:

sscanf warning: String buffer overflow.

And when i log in server going crash.

I think, problem is in this part:
Код:
     sscanf(query, "p<|>iis[24]s[32]iiiiiiiiiifffs[512]",
  PlayerInfo[playerid][guid],
  PlayerInfo[playerid][player_uid],
  PlayerInfo[playerid][nick],
  PlayerInfo[playerid][pass],
  PlayerInfo[playerid][aj],
  PlayerInfo[playerid][bw],
  PlayerInfo[playerid][skin],
  PlayerInfo[playerid][sex],
  PlayerInfo[playerid][age],
  PlayerInfo[playerid][pdp],
  PlayerInfo[playerid][prisontime],
  PlayerInfo[playerid][cash],
  PlayerInfo[playerid][cashinbank],
     PlayerInfo[playerid][ban],
     PlayerInfo[playerid][pos_x],
     PlayerInfo[playerid][pos_y],
     PlayerInfo[playerid][pos_z],
Any1 know reason? Thanks.
Reply
#2

What's supposed to go in the string size 512?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)