INI_WriteInt causes "Invalid instruction" run time error
#9

Strange indeed.

This works:
pawn Код:
SetServerData(LastJobXpWipeTimestamp, 454);
This does not.
pawn Код:
SetServerData(LastJobXpWipeTimestamp, gettime());

To rule out other factors, this also produces an error:
pawn Код:
new INI:file = INI_Open("Lol.txt");
    INI_WriteInt(file, "Key",gettime());
    INI_Close(file);
Although a different one:
pawn Код:
[17:31:26] [debug] Run time error 4: "Array index out of bounds"
[17:31:26] [debug]  Accessing element at index 21092424 past array upper bound 499
[17:31:26] [debug] AMX backtrace:
[17:31:26] [debug] #0 0001ccb8 in ?? () from server.amx
[17:31:26] [debug] #1 000962cc in public Itter_OnGameModeInit () from server.amx
[17:31:26] [debug] #2 native CallLocalFunction () [00472ad0] from samp-server.exe
[17:31:26] [debug] #3 00002de8 in ?? () from server.amx
[17:31:26] [debug] #4 00001d6c in public OnGameModeInit () from server.amx
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)