Server Crashing.
#1

I think this function is crashing my server.

pawn Код:
function LoadUser_data(playerid,name[],value[])
{
    #if defined DEBUG
    printf("[Debug] LoadUser_data(%d,%s,%s);", playerid,name,value);
    #endif
    INI_String("Password",PlayerInfo[playerid][pPass], 129);
    //INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Cash",PlayerInfo[playerid][pLevel]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("DonationMod",PlayerInfo[playerid][pDonationMod]);
    INI_Int("Sex",PlayerInfo[playerid][pSex]);
    INI_Int("Age",PlayerInfo[playerid][pAge]);
    INI_Float("PosX",PlayerInfo[playerid][pPosX]);
    INI_Float("PosY",PlayerInfo[playerid][pPosY]);
    INI_Float("PosZ",PlayerInfo[playerid][pPosZ]);
    INI_Int("Spawn",PlayerInfo[playerid][pSpawn]);
    INI_Int("Skin",PlayerInfo[playerid][pSkin]);
    INI_Int("Helper",PlayerInfo[playerid][pHelper]);
    INI_Int("Donator",PlayerInfo[playerid][pDonator]);
    INI_Int("Accent",PlayerInfo[playerid][pAccent]);
    INI_Int("BusinessKey",PlayerInfo[playerid][pBusinessKey]);
    INI_Int("HouseKey",PlayerInfo[playerid][pHouseKey]);
    INI_Int("Jailed",PlayerInfo[playerid][pJailed]);
    INI_Int("JailTime",PlayerInfo[playerid][pJailTime]);
    INI_Int("Steel",PlayerInfo[playerid][pSteel]);
    INI_Int("Job",PlayerInfo[playerid][pJob]);
    INI_Int("JobHours",PlayerInfo[playerid][pJobHours]);
    INI_Int("Member",PlayerInfo[playerid][pMember]);
    INI_Int("Rank",PlayerInfo[playerid][pRank]);
    INI_Int("Banned",PlayerInfo[playerid][pBanned]);
    INI_Int("Warns",PlayerInfo[playerid][pWarns]);
    INI_Int("Hospitalized",PlayerInfo[playerid][pHospitalized]);
    INI_Int("PhoneNumber",PlayerInfo[playerid][pPhoneNumber]);
    INI_Int("FlyingLicense",PlayerInfo[playerid][pFlyingLicense]);
    INI_Int("FactionMod",PlayerInfo[playerid][pFactionMod]);
    return 1;
}
Reply
#2

Quote:

INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Cash",PlayerInfo[playerid][pLevel]);

Not sure if that's causing it, but you might want to fix that.
Reply
#3

Oh shite! I'll test that now, thanks for your help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)