31.10.2012, 21:14
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;
}