[HELP] All CallBack or Crash
#1

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!
Reply
#2

Where is your OnDialogResponse ?
Reply
#3

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

*sorry my bad english
Reply
#4

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 ?
Reply
#5

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?
Reply
#6

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

Help me please, this is important!
Reply
#8

If you put all callbacks crashes the same?
Reply
#9

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
Reply
#10

Someone can help me? (UP)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)