OPCode warning
#1

Anyone knows the reason this code appears?

Код:
Warning(opcode 0x107): Exception 0xC0000005 at 0x469797
Happens under onplayerconnect:

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    AddMapIconFromFile(ICON_FILE_NAME);
    PlayerTexts(playerid);
    SetPVarInt(playerid, "SBoost", 1);

    SetPVarInt(playerid, "Deaths", 0);
    SetPVarInt(playerid, "DrunkLvl", 0);
    SetPVarInt(playerid, "Kills", 0);
    SetPVarInt(playerid, "Level", 0);
    SetPVarInt(playerid, "LoggedIn", 0);
    SetPVarInt(playerid, "Registered", 0);
    SetPVarInt(playerid, "God", 0);
    SetPVarInt(playerid, "FailLogin", 0);
    SetPVarInt(playerid, "BankMoney", 0);
    SetPVarInt(playerid, "Bounty", 0);
    SetPVarInt(playerid, "SpawnTicket", 0);
    SetPVarInt(playerid, "PlayerSkin", 0);
    SetPVarInt(playerid, "TimesSpawned", 0);
    SetPVarInt(playerid, "ConnectTime", gettime());
    return 1;
}
Thanks.
Reply
#2

you tried disabling them 1 by one and checking which one specifically might be triggering it ?
Reply
#3

I'd guess the gettime() bit.
Reply
#4

add // infront of that line, compile, upload and restart your server, test and actually SEE if that's the issue causing it.

If it is, id suggest looking into the GetTime() examples on the wiki, and starting there ...
Reply
#5

I disabled everything under OnPlayerConnect, and also under OnPlayerSpawn, ALSO under OnPlayerRquestclass

and still getting that same warning
Reply
#6

then its not any code in those function calls ... this happening for just you, or everyone ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)