easydialog
#7

it fixed

PHP Code:
Dialog:RandomDM(playeridresponselistiteminputtext[])
{
    new 
string[128], playerName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayerNamesizeof(playerName));
    if (
response)
    {
        switch(
listitem// Check which option was chosen when they responded. We only have one for now. The next would be case 1, then case 2 and so on.
            
{
                case 
0:
                {
                    
InDM[playerid] = true;
                    
DM[playerid] = 0;
                    
SpawnPlayer(playerid);
                }
            }
            
format(stringsizeof(string), "{77B3D9}[DM Zones] {ffffff}%s(%i) has just entered {77B3D9}DM zone %i {ffffff}(/dm)"playerNameplayeridDM[playerid]);
            
SendClientMessageToAll(-1string);
            return 
1;  // ?? One you missed
    
}
    return 
0;

but i start the server
it show this
Quote:

[11:15:07] [debug] Run time error 4: "Array index out of bounds"
[11:15:07] [debug] Attempted to read/write array element at index 65535 in array of size 1000
[11:15:07] [debug] AMX backtrace:
[11:15:07] [debug] #0 0001facc in ?? (0, 65535, 54) from GL.amx
[11:15:07] [debug] #1 0000c4b4 in public OnPlayerDeath (0, 65535, 54) from GL.amx

Reply


Messages In This Thread
easydialog - by crukk11 - 15.04.2017, 15:01
Re: easydialog - by AndreiWow - 15.04.2017, 15:06
Re: easydialog - by crukk11 - 15.04.2017, 15:29
Respuesta: easydialog - by Ertouq - 15.04.2017, 17:34
Re: easydialog - by Vince - 15.04.2017, 17:39
Re: easydialog - by AndreiWow - 15.04.2017, 18:11
Re: easydialog - by crukk11 - 16.04.2017, 03:28
Re: easydialog - by Logic_ - 16.04.2017, 03:35
Re: easydialog - by crukk11 - 16.04.2017, 03:38
Re: easydialog - by Logic_ - 16.04.2017, 03:42

Forum Jump:


Users browsing this thread: 1 Guest(s)