sscanf warning: String buffer overflow
#1

I got this error when everytime i connected to my server, and it took a long time to Show my RLTD (Register Login TextDraw)

PHP код:
public OnPlayerConnect(playerid)
{
    
// REMOVE BUILDING
    
RemoveBuildingForPlayer(playerid40241479.8672, -1790.398456.02340.25); 
    
RemoveBuildingForPlayer(playerid40441481.1875, -1785.070322.38280.25); 
    
RemoveBuildingForPlayer(playerid40451479.3359, -1802.289112.54690.25); 
    
RemoveBuildingForPlayer(playerid15271448.2344, -1755.898414.52340.25); 
    
RemoveBuildingForPlayer(playerid39971479.3359, -1802.289112.54690.25); 
    
RemoveBuildingForPlayer(playerid40021479.8672, -1790.398456.02340.25); 
    
RemoveBuildingForPlayer(playerid39801481.1875, -1785.070322.38280.25); 
    
RemoveBuildingForPlayer(playerid40031481.0781, -1747.031333.52340.25); 
    
RemoveBuildingForPlayer(playerid7131407.1953, -1749.312513.09380.25); 
    
RemoveBuildingForPlayer(playerid7131405.2344, -1821.117213.10160.25);  
    
g_MysqlRaceCheck[playerid]++;
    
/* LUMBERJACK OPC */
    
LumberPlayer_Init(playerid);
    
/* HOUSE OPC */
    
House_PlayerInit(playerid);
    
/* BUSINESS OPC */
    
InBusiness[playerid] = INVALID_BUSINESS;
    
BizListPage[playerid] = 0;
    
/* ATM OPC */
    
CurrentAccountID[playerid] = -1;
    
LogListType[playerid] = TYPE_NONE;
    
LogListPage[playerid] = 0;
    
EditingATMID[playerid] = -1;
    
// reset player data
    
static const empty_player[PlayerInfo];
    
pInfo[playerid] = empty_player;
    
pInfo[playerid][Nick] = GetName(playerid);
    if(
TAdmin_Debug == trueprintf("[%s - Debug]: Player %s (%d) from %s, %s with IP %s connected. - OnPlayerConnect"SYSTEMNAMEGetName(playerid), playeridGetPlayerCity(playerid), GetPlayerCountry(playerid), returnIP(playerid));
    
ResetPlayerVariables(playerid);
    
// send a query to recieve all the stored player data from the table
    
new query[125];
    
mysql_format(g_SQLquerysizeof query"SELECT * FROM `players` WHERE `username` = '%e' LIMIT 1"GetName(playerid));
    
mysql_tquery(g_SQLquery"ShowRLTD""dd"playeridg_MysqlRaceCheck[playerid]); // It took a long time to proccess this (maybe 3 secs)
    
mysql_format(g_SQLquerysizeof(query), "SELECT * FROM `Vehicles` WHERE `vehOwner` = '%e'"GetName(playerid));
    
mysql_tquery(g_SQLquery"LoadPlayerVehicles""i"playerid);
    
mysql_format(g_SQLquerysizeof(query), "SELECT * FROM `players` WHERE `username` = '%e';"GetName(playerid));
    
mysql_tquery(g_SQLquery"CheckPlayer""d"playerid); // Check if the player is banned
    
    
pInfo[playerid][pAdmin] = 0;
    
pInfo[playerid][pWarns] = 0;
    
pInfo[playerid][pMuted] = false;
    
pInfo[playerid][pMutedTime] = 0;
    
pInfo[playerid][pJailed] = false;
    
pInfo[playerid][pJailedTime] = 0;
    
pInfo[playerid][IsLoggedIn] = false;
    
CamTimer[playerid] = SetTimerEx("CinematicCam"0false"d"playerid);
    
ManualVehicleEngineAndLights();
    
// MAPPING
    
return 1;

Reply
#2

bump
Reply
#3

help pls?
Reply
#4

Hello, in the code you've posted I see no sscanf being used.
Reply
#5

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
Hello, in the code you've posted I see no sscanf being used.
Yeah, ikr.. but every time i connected to my server.. it shows warning like that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)