YINI Reports back errors
#1

Hi,

Firstly the output below it what I received when debugging my server, as you can see "Sex" is saved twice however in the code appears once. And the 2 below that being "Admin" and "Skin" return no name, and "1852401525" giving me the error "Invalid Instruction".

Код:
[01:17:48] VirtualWorld, 0
[01:17:48] Sex, 0
[01:17:48] Age, 0
[01:17:48] Sex, 0
[01:17:48] , 1852401525
[01:17:48] [debug] Run time error 6: "Invalid instruction"
[01:17:48] , 1852401525
[01:17:48] [debug] Run time error 6: "Invalid instruction"
[01:17:48] [debug]  Unknown opcode 0x10000000 at address 0x00000035
[01:17:48] [debug] AMX backtrace:
[01:17:48] [debug] #0 native CallLocalFunction () [00471e90] from samp-server.exe
[01:17:48] [debug] #1 00000035 in public OnPlayerDisconnect () from YINI.amx
[01:17:48] [debug] #2 0000e358 in ?? () from YINI.amx
[01:17:48] [debug] #3 00000035 in public SSCANF_OnPlayerDisconnect () from YINI.amx
[01:17:48] [debug] #4 native CallLocalFunction () [00471e90] from samp-server.exe
[01:17:48] [debug] #5 00010884 in ?? () from YINI.amx
[01:17:48] [debug] #6 00005314 in public OnPlayerDisconnect () from YINI.amx
[01:17:48] [debug]  Unknown opcode 0x78 at address 0x00000008
[01:17:48] [npc:part] Steve has left the server (0:2)
[01:17:48] [debug] AMX backtrace:
[01:17:48] [debug] #0 00000008 in public SSCANF_OnPlayerDisconnect () from YINI.amx
[01:17:48] [debug] Run time error 6: "Invalid instruction"
[01:17:48] [debug]  Unknown opcode 0x78 at address 0x00000008
[01:17:48] [debug] AMX backtrace:
[01:17:48] [debug] #0 00000008 in public SSCANF_OnPlayerDisconnect () from YINI.amx
[01:17:48] [debug] Run time error 4: "Array index out of bounds"
[01:17:48] [debug]  Accessing element at index 18112556 past array upper bound 499
[01:17:48] [debug] AMX backtrace:
[01:17:48] [part] Steve has left the server (0:1)
Secondly here is the full saving code to prove my point:

pawn Код:
SaveUser(playerid)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"Statistics");
    INI_WriteInt(File, "Cash", PlayerInfo[playerid][pCash]);
    INI_WriteInt(File, "Score", PlayerInfo[playerid][pScore]);
    INI_WriteInt(File,"Interior", GetPlayerInterior(playerid));
    GetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
    INI_WriteFloat(File,"PosX", PlayerInfo[playerid][pPosX]);
    INI_WriteFloat(File,"PosY", PlayerInfo[playerid][pPosY]);
    INI_WriteFloat(File,"PosZ", PlayerInfo[playerid][pPosZ]);
    GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPosA]);
    INI_WriteFloat(File,"PosA", PlayerInfo[playerid][pPosA]);
    INI_WriteInt(File,"VirtualWorld", GetPlayerVirtualWorld(playerid));
    INI_WriteInt(File,"Age", PlayerInfo[playerid][pAge]);
    INI_WriteInt(File,"Sex", PlayerInfo[playerid][pSex]);
    INI_WriteInt(File,"Admin", PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Skin", GetPlayerSkin(playerid));
    INI_WriteInt(File,"Weed", PlayerInfo[playerid][pWeed]);
    INI_WriteInt(File,"Cocaine", PlayerInfo[playerid][pCocaine]);
    INI_WriteInt(File,"Job", PlayerInfo[playerid][pJob]);
    INI_WriteInt(File,"Arrests", PlayerInfo[playerid][pArrests]);
    INI_WriteInt(File,"Faction", PlayerInfo[playerid][pFaction]);
    INI_WriteInt(File,"FactionRank", PlayerInfo[playerid][pFactionRank]);
    INI_WriteInt(File,"BankAccount", PlayerInfo[playerid][pBankAccount]);
    INI_WriteInt(File,"DataSaved", PlayerInfo[playerid][pDataSaved]);
    INI_WriteInt(File,"Business", PlayerInfo[playerid][pBusiness]);
    INI_WriteInt(File,"House", PlayerInfo[playerid][pHouse]);
    INI_WriteInt(File,"Paycheck", PlayerInfo[playerid][pPayCheck]);
    INI_WriteInt(File,"Cigarettes", PlayerInfo[playerid][pCiggs]);
    INI_WriteInt(File,"Helper", PlayerInfo[playerid][pHelper]);
    INI_WriteInt(File,"Walkie-Talkie", PlayerInfo[playerid][pWT]);
    INI_WriteInt(File,"Freq", PlayerInfo[playerid][pFreq]);
    INI_WriteInt(File,"Muted", PlayerInfo[playerid][pMuted]);
    INI_WriteInt(File,"Newbie", PlayerInfo[playerid][pNewbie]);
   
    INI_WriteInt(File, "Vehicle_0", PlayerInfo[playerid][pVehicles][0]);
    INI_WriteInt(File, "Vehicle_1", PlayerInfo[playerid][pVehicles][1]);
    INI_WriteInt(File, "Vehicle_2", PlayerInfo[playerid][pVehicles][2]);
    INI_WriteInt(File, "Cellphone", PlayerInfo[playerid][pCellphone]);
    INI_WriteInt(File, "Credit", PlayerInfo[playerid][pCredit]);
    INI_WriteInt(File, "FreezeType", PlayerInfo[playerid][pFreezeType]);
   
    for(new i = 0; i < 11; i++)
    {
        new string[10];
       
        format(string, sizeof(string), "Weapon_%i", i);
        INI_WriteInt(File, string, Weapons[playerid][i][0]);
       
        format(string, sizeof(string), "Ammo_%i", i);
        INI_WriteInt(File, string, Weapons[playerid][i][1]);
    }
   
    INI_WriteInt(File, "Banned", PlayerInfo[playerid][pBanned]);
    INI_WriteString(File, "IP", GetPlayerIPEx(playerid));
   
    INI_Close(File);
    return 1;
}
Also I have no altered the Y_INI file system other than once this problem occured to print the values of each Save, and Value such as "Sex, 0".
Reply


Messages In This Thread
YINI Reports back errors - by Elysian` - 19.08.2013, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)