Is this a default 0.3.7 bug?
#6

Quote:
Originally Posted by Sjn
Посмотреть сообщение
Nevermind, moved the message to user account loading function.
Err, sorry for bumping but the problem still exist even if i moved the message to account loading function. Can anyone help? :/

PHP код:
public OnPlayerConnect(playerid)
{
    new
        
x1[E_PLAYERDATA],
        
x2[E_JOBDATA],
        
x3[E_SYNCDATA]
    ;
    
pInfo[playerid] = x1;
    
g_JobData[playerid] = x2;
    
g_SyncInfo[playerid] = x3;
    
g_SpecID[playerid] = INVALID_PLAYER_ID;
    
g_ReporterID[playerid] = INVALID_PLAYER_ID;
    
g_ReportedID[playerid] = INVALID_PLAYER_ID;
    
g_PlayerConvoyID[playerid] = 0;
    
g_PlayerInConvoy[playerid] = 0;
    
g_PrevPos[playerid][0] = 0.0;
    
g_PrevPos[playerid][1] = 0.0;
    
g_PrevPos[playerid][2] = 0.0;
    
g_PrevPos[playerid][3] = 0.0;
    
g_PrevSkin[playerid] = -1;
    
g_PrevClass[playerid] = 0;
    
g_MuteWarns[playerid] = 0;
    
g_LoginAttempts[playerid] = 0;
    
g_RconAttempts[playerid] = 0;
    
g_TargetDialog[playerid] = -1;
    
g_TargetDialogHouse[playerid] = -1;
    
g_RentVehicleDialog[playerid] = -1;
    
g_BuyVehicleDialog[playerid] = -1;
    
g_AdminWarned[playerid] = 0;
    
prev_Int[playerid] = -1;
    
prev_X[playerid] = 0.0;
    
prev_Y[playerid] = 0.0;
    
prev_Z[playerid] = 0.0;
    
g_TimerMute[playerid] = -1;
    
g_TimerJail[playerid] = -1;
    
g_TimerLoadUnload[playerid] = -1;
    
g_TimerSpeedo[playerid] = -1;
    
g_TimerRepairVeh[playerid] = -1;
    
g_TimerRefuelVeh[playerid] = -1;
    
g_TimerTicket[playerid] = -1;
    
g_TimerPullOver[playerid] = -1;
    
g_PlayerChatTime[playerid] = 0;
    
g_PlayerChatMsg[playerid] = "";
    
    
GetPlayerIp(playeridpInfo[playerid][pIP], 16);
    
GetPlayerName(playeridpInfo[playerid][pName], MAX_PLAYER_NAME);
    
    new
        
string[64],
        
query[128]
    ;
    
format(stringsizeof(string), "Player %s has connected to the server."pInfo[playerid][pName]);
     
SendClientMessageToAll(0xAAAAAAFFstring);
    
mysql_format(mysqlquerysizeof(query), "SELECT `nick`,`ip`,`expire` FROM `bans` WHERE `ip`='%e' OR `nick`='%e'"pInfo[playerid][pIP], pInfo[playerid][pName]);
    
mysql_tquery(mysqlquery"CheckBan""i"playerid);
    
    
LoadTextDraws(playerid);
    
TogglePlayerSpectating(playerid1);
    
SetPVarInt(playerid"money"0);
    
SetPVarInt(playerid"score"0);
    
SetPVarInt(playerid"firstspawn"1);
    
    
pInfo[playerid][pText] = Create3DTextLabel("Connected"grey30.040.050.040.001);
    
Attach3DTextLabelToPlayer(pInfo[playerid][pText], playerid0.00.00.5);
    
    
format(stringsizeof(string), "-- Hello and welcome back, %s"pInfo[playerid][pName]);
    
SendClientMessage(playeridlightbluestring);
    
    
mysql_format(mysqlquerysizeof(query), "SELECT `pass`,`id` FROM `users` WHERE `nick`='%e' LIMIT 1"pInfo[playerid][pName]);
    
mysql_tquery(mysqlquery"QueryExecute""ii"result_check_useraccountplayerid);
    
    
g_TimerSpeedo[playerid] = SetTimerEx("SpeedometerInit"3501"i"playerid);
    return 
1;

Reply


Messages In This Thread
Is this a default 0.3.7 bug? - by Sjn - 24.08.2015, 12:48
Re: Is this a default 0.3.7 bug? - by SpikY_ - 24.08.2015, 12:50
Re: Is this a default 0.3.7 bug? - by Sjn - 24.08.2015, 12:56
Re: Is this a default 0.3.7 bug? - by SpikY_ - 24.08.2015, 12:58
Re: Is this a default 0.3.7 bug? - by Sjn - 24.08.2015, 13:04
Re: Is this a default 0.3.7 bug? - by Sjn - 25.08.2015, 11:37
Re: Is this a default 0.3.7 bug? - by Roberto80 - 25.08.2015, 13:30

Forum Jump:


Users browsing this thread: 2 Guest(s)