SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/01/2015, 02:15 PM   #1
Axey187
Big Clucker
 
Join Date: Sep 2013
Posts: 139
Reputation: 25
Default Server Crash

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
Axey187 is offline   Reply With Quote
Old 10/01/2015, 06:43 PM   #2
DavidSparks
Big Clucker
 
DavidSparks's Avatar
 
Join Date: Jun 2014
Location: Sweden
Posts: 175
Reputation: 17
Default Re: Server Crash

Can you show us your OnPlayerUpdate?
__________________
DavidSparks is offline   Reply With Quote
Old 10/01/2015, 08:20 PM   #3
Axey187
Big Clucker
 
Join Date: Sep 2013
Posts: 139
Reputation: 25
Default Re: Server Crash

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.
Axey187 is offline   Reply With Quote
Old 10/01/2015, 09:07 PM   #4
Axey187
Big Clucker
 
Join Date: Sep 2013
Posts: 139
Reputation: 25
Default Re: Server Crash

bump, anyone can assist me?
Axey187 is offline   Reply With Quote
Old 10/01/2015, 10:38 PM   #5
bgedition
Huge Clucker
 
bgedition's Avatar
 
Join Date: Oct 2013
Location: 127.0.0.1
Posts: 417
Reputation: 37
Default Re: Server Crash

Move this in OnPlayerKeyStateChange
__________________
Never point your finger at some one, you will always have three fingers pointing back at you.
bgedition is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP]Server Crash - Located crash line with CrashDETECT - Guest4390857394857 Server Support 4 05/09/2014 04:37 AM
[Help] Server crash LIBMYSQL Crash Detect bigtigerbeee Scripting Help 2 13/03/2014 12:53 PM
setplayername server crash helpme [crash detect] bigtigerbeee Scripting Help 4 28/11/2013 12:23 AM
Hello strange crash!!!!! (SAMP Crash not server) Scrillex Scripting Help 2 31/08/2012 07:03 AM
Fatal Game crash, Not client or server crash SourceCode Scripting Help 3 11/10/2011 05:13 PM


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.