16.04.2017, 03:28
it fixed
but i start the server
it show this
PHP Code:
Dialog:RandomDM(playerid, response, listitem, inputtext[])
{
new string[128], playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, sizeof(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(string, sizeof(string), "{77B3D9}[DM Zones] {ffffff}%s(%i) has just entered {77B3D9}DM zone %i {ffffff}(/dm)", playerName, playerid, DM[playerid]);
SendClientMessageToAll(-1, string);
return 1; // ?? One you missed
}
return 0;
}
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 |