25.08.2012, 12:13
It seems posting here might be pointless but I will anyway...
I get a crash detect error every few seconds pointing to the return line of this function:
The error on the console is:
Nothing seems wrong with that line, I'm trying to use this to detect a crashing problem I've been having recently but it's hard to spot a different error when this is popping onto my console every few seconds.
I get a crash detect error every few seconds pointing to the return line of this function:
pawn Code:
stock HighestOnlineAdmin()
{
new id;
foreach(new i : Player)
if(pAdmin(i)>pAdmin(id)) id=i;
return id; // Right here
}
Code:
[debug] Run time error 6: "Invalid instruction" [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF [debug] AMX backtrace: [debug] #0 ffffffff in ?? () at K:\Games\Projects\SA-MP Server\gamemodes\sffa.pwn:4026