Server Crash
#1

I compiled my script successfully and joined the server to test, once I joined the server crashed and I got these errors from the crashdetection plugin.

pawn Code:
[16:54:31] [join] Alsarty has joined the server (0:127.0.0.1)
[16:54:36] [debug] Run time error 6: "Invalid instruction"
[16:54:36] [debug]  Unknown opcode 0x0 at address 0x00000004
[16:54:36] [debug] AMX backtrace:
[16:54:36] [debug] #0 00000004 in public OnPlayerUpdate () from FM.amx
[16:54:37] [debug] Run time error 6: "Invalid instruction"
[16:54:37] [debug]  Unknown opcode 0x0 at address 0x00000004
[16:54:37] [debug] AMX backtrace:
[16:54:37] [debug] #0 00000004 in public OnPlayerUpdate () from FM.amx
[16:54:37] [debug] Run time error 6: "Invalid instruction"
[16:54:37] [debug]  Unknown opcode 0x0 at address 0x00000004
[16:54:37] [debug] AMX backtrace:
[16:54:37] [debug] #0 00000004 in public OnPlayerUpdate () from FM.amx
[16:54:37] [debug] Run time error 6: "Invalid instruction"
[16:54:37] [debug]  Unknown opcode 0x0 at address 0x00000004
[16:54:37] [debug] AMX backtrace:
[16:54:37] [debug] #0 00000004 in public OnPlayerUpdate () from FM.amx
[16:54:37] [debug] Run time error 6: "Invalid instruction"
[16:54:37] [debug]  Unknown opcode 0x0 at address 0x00000004
[16:54:37] [debug] AMX backtrace:
[16:54:37] [debug] #0 00000004 in public OnPlayerUpdate () from FM.amx
[16:54:37] [debug] Server crashed while executing FM.amx
[16:54:37] [debug] AMX backtrace:
[16:54:37] [debug] #0 native GetPlayerKeys () from samp-server.exe
[16:54:37] [debug] #1 0001a03c in ?? (0) from FM.amx
[16:54:37] [debug] #2 0000df58 in public OnPlayerUpdate (0) from FM.amx
[16:54:37] [debug] Native backtrace:
[16:54:37] [debug] #0 004722e0 in ?? () from samp-server.exe
[16:54:37] [debug] #1 62ee62ca in ?? () from plugins\crashdetect.DLL
[16:54:37] [debug] #2 62ee8b28 in ?? () from plugins\crashdetect.DLL
[16:54:37] [debug] #3 62ee09c7 in ?? () from plugins\crashdetect.DLL
[16:54:37] [debug] #4 62ee631a in ?? () from plugins\crashdetect.DLL
[16:54:37] [debug] #5 0046db90 in ?? () from samp-server.exe
[16:54:37] [debug] #6 004898d5 in ?? () from samp-server.exe
Reply
#2

Can you show us your OnPlayerUpdate?
Reply
#3

pawn Code:
public OnPlayerUpdate(playerid)
{
    new Keys,LALT;
    GetPlayerKeys(playerid,Keys, LALT);
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 2497.5610,-1687.2009,13.4887))
    {
        gTeam[playerid] = GANG_GROVES;
        SetPlayerColor(playerid, GANG_GROVES_COLOR);
        PlayerInfo[playerid][pGang] = GANG_GROVES;
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 2165.3833,-1673.5201,15.0791))
    {
        gTeam[playerid] = GANG_BALLAS;
        PlayerInfo[playerid][pGang] = GANG_BALLAS;
        SetPlayerColor(playerid, GANG_BALLAS_COLOR);
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 2354.5571,-1169.9790,28.0411))
    {
        gTeam[playerid] = GANG_VAGOS;
        SetPlayerColor(playerid, GANG_VAGOS_COLOR);
        PlayerInfo[playerid][pGang] = GANG_VAGOS;
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3, 1876.7480,-2022.2742,13.5391))
    {
        gTeam[playerid] = GANG_AZTECAS;
        SetPlayerColor(playerid, GANG_AZTECAS_COLOR);
        PlayerInfo[playerid][pGang] = GANG_AZTECAS;
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,2637.1663,2350.2969,10.6719))
    {
        gTeam[playerid] = GANG_BIKER;
        SetPlayerColor(playerid, GANG_BIKER_COLOR);
        PlayerInfo[playerid][pGang] = GANG_BIKER;
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,1664.8064,2252.1487,11.0625))
    {
        gTeam[playerid] = GANG_RUSSIAN_MAFIAS;
        SetPlayerColor(playerid, GANG_RUSSIAN_MAFIAS_COLOR);
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        PlayerInfo[playerid][pGang] = GANG_RUSSIAN_MAFIAS;
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,-1742.1278,23.7553,3.5547))
    {
        gTeam[playerid] = GANG_DA_NANG_BOYS;
        SetPlayerColor(playerid, GANG_DA_NANG_BOYS_COLOR);
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        PlayerInfo[playerid][pGang] = GANG_DA_NANG_BOYS;
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,-2626.7715,1409.6565,7.0938))
    {
        gTeam[playerid] = GANG_RIFAS;
        SetPlayerColor(playerid, GANG_RIFAS_COLOR);
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        PlayerInfo[playerid][pGang] = GANG_RIFAS;
        return 1;
    }
    if(LALT == KEY_WALK && IsPlayerInRangeOfPoint(playerid, 3,-2155.9807,629.8221,52.3672))
    {
        gTeam[playerid] = GANG_TRIADS;
        SetPlayerColor(playerid, GANG_TRIAD_COLOR);
        SendClientMessage(playerid, 0xF0A80480, "Use /team <message> to type in team chat!");
        PlayerInfo[playerid][pGang] = GANG_TRIADS;
        return 1;
    }
    return 1;
}
Sorry for replying late, here's the OnPlayerUpdate code.
Reply
#4

bump, anyone can assist me?
Reply
#5

Move this in OnPlayerKeyStateChange
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)