SA-MP Forums Archive
[HELP] All CallBack or Crash - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] All CallBack or Crash (/showthread.php?tid=376713)



[HELP] All CallBack or Crash - PryX0G3n - 11.09.2012

Hi guys, this is my first topic.

I have a problem with my gamemode, if I do not put all the callback , the server crashes.
..and I also have a problem that I can not understand with the OnDialogResponse..

This is log :

Код:
[01:43:16] [debug] Run time error 4: "Array index out of bounds"
[01:43:16] [debug]  Accessing element at negative index -1
[01:43:16] [debug] AMX backtrace:
[01:43:16] [debug] #0 0016b508 in public OnDialogResponse () from GamemodeFreeroam.amx
[01:43:17] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
[01:43:47] [debug] Run time error 6: "Invalid instruction"
[01:43:47] [debug]  Unknown opcode 0x7800 at address 0xFFFFFFFF
[01:43:47] [debug] AMX backtrace:
[01:43:47] [debug] #0 ffffffff in public OnFilterScriptExit () from GamemodeFreeroam.amx
[01:43:55] --- Server Shutting Down.
[01:43:55]
I have put in the gamemode this :

Код:
 public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
        return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        return 1;
}

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnEnterExitModShop(playerid, enterexit, interiorid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}
someone can help me? Thanks in advance, bye!


Re: [HELP] All CallBack or Crash - Glint - 11.09.2012

Where is your OnDialogResponse ?


Re: [HELP] All CallBack or Crash - PryX0G3n - 11.09.2012

My OnDialogResponse is long, more or less 700 lines.. I just want to understand on what comes..

*sorry my bad english


Re: [HELP] All CallBack or Crash - Glint - 11.09.2012

Quote:
Originally Posted by PryX0G3n
Посмотреть сообщение
My OnDialogResponse is long, more or less 700 lines.. I just want to understand on what comes..

*sorry my bad english
The code you provided us is fine, why did you even post it in the first place ?


Re: [HELP] All CallBack or Crash - PryX0G3n - 11.09.2012

Quote:
Originally Posted by Lexi'
Посмотреть сообщение
The code you provided us is fine, why did you even post it in the first place ?
why are these AMX backtrace, and how do I fix this?


Re: [HELP] All CallBack or Crash - PryX0G3n - 11.09.2012

If I do not put these callbacks the server crashes .. giving me this error "[debug] #0 ffffffff .. callback.."


Re: [HELP] All CallBack or Crash - PryX0G3n - 11.09.2012

Help me please, this is important!


Re: [HELP] All CallBack or Crash - [IKS]Niko_Hs™ - 11.09.2012

If you put all callbacks crashes the same?


Re: [HELP] All CallBack or Crash - PryX0G3n - 11.09.2012

Yes, every time I add one, the crashdetect print another callback..
Add all callback?

this error still remains, how do I fix?

Код:
[01:43:16] [debug] Run time error 4: "Array index out of bounds"
[01:43:16] [debug]  Accessing element at negative index -1
[01:43:16] [debug] AMX backtrace:
[01:43:16] [debug] #0 0016b508 in public OnDialogResponse () from GamemodeFreeroam.amx
[01:43:17] Warning: PlayerDialogResponse PlayerId: 4 dialog ID doesn't match last sent dialog ID
Thanks


Re: [HELP] All CallBack or Crash - PryX0G3n - 12.09.2012

Someone can help me? (UP)