[Ajuda] #1 0003ddfc in public SSCANF_OnPlayerConnect (938) from GM.amx
#1

Ao iniciar meu servidor os NPC Zumbi entram mas ocorrem vбrios erros:

PHP Code:
[13:07:33] [npc:joinZombie(1000has joined the server (938:127.0.0.1)
[
13:07:33] [debugRun time error 4"Array index out of bounds"
[13:07:33] [debug]  Accessing element at index 938 past array upper bound 99
[13:07:33] [debugAMX backtrace:
[
13:07:33] [debug#0 0003f1fc in public J_OnPlayerConnect (938) from GM.amx
[13:07:33] [debug#1 0003ddfc in public SSCANF_OnPlayerConnect (938) from GM.amx
[13:07:33] [debug#2 000369f4 in public _y_utils_OnPlayerConnect (938) from GM.amx
[13:07:33] [debug#3 0001119c in ?? (938, 1, 0, 0, 4, 938, 0, 0, 0, 0, ... <1073741813 arguments>) from GM.amx
[13:07:33] [debug#4 00014fa0 in public OnPlayerConnect (938) from GM.amx
[13:07:33] [npc:joinZombie(999has joined the server (937:127.0.0.1)
[
13:07:33] [debugRun time error 4"Array index out of bounds"
[13:07:33] [debug]  Accessing element at index 937 past array upper bound 99
[13:07:33] [debugAMX backtrace:
[
13:07:33] [debug#0 0003f1fc in public J_OnPlayerConnect (937) from GM.amx
[13:07:33] [debug#1 0003ddfc in public SSCANF_OnPlayerConnect (937) from GM.amx
[13:07:33] [debug#2 000369f4 in public _y_utils_OnPlayerConnect (937) from GM.amx
[13:07:33] [debug#3 0001119c in ?? (937, 1, 0, 0, 4, 937, 0, 0, 0, 0, ... <1073741813 arguments>) from GM.amx
[13:07:33] [debug#4 00014fa0 in public OnPlayerConnect (937) from GM.amx
[13:07:33] [npc:joinZombie(998has joined the server (936:127.0.0.1)
[
13:07:33] [debugRun time error 4"Array index out of bounds"
[13:07:33] [debug]  Accessing element at index 936 past array upper bound 99
[13:07:33] [debugAMX backtrace:
[
13:07:33] [debug#0 0003f1fc in public J_OnPlayerConnect (936) from GM.amx
[13:07:33] [debug#1 0003ddfc in public SSCANF_OnPlayerConnect (936) from GM.amx
[13:07:33] [debug#2 000369f4 in public _y_utils_OnPlayerConnect (936) from GM.amx
[13:07:33] [debug#3 0001119c in ?? (936, 1, 0, 0, 4, 936, 0, 0, 0, 0, ... <1073741813 arguments>) from GM.amx
[13:07:33] [debug#4 00014fa0 in public OnPlayerConnect (936) from GM.amx 
Verifiquei o OnPlayerConnect e sу encontrei isso:
PHP Code:
public OnPlayerConnect(playerid)
{
    if(
IsPlayerNPC(playerid)) return Player[playerid][pLogado] = false1;
    for(new 
0100i++) SCM(playerid, -1" ");
    
LoadPlayerTextDraws(playerid);
    
SetPlayerColor(playerid0xFFFFFFFF);
    
targetID[playerid] = INVALID_PLAYER_ID;
    
    
//Vars reset
    
Player[playerid][pSlots] = 5;
    
Player[playerid][pGod] = 0;
    
Player[playerid][pGodcar] = 0;
    
Player[playerid][pPassF] = 0;
    
Player[playerid][pKicked] = 0;
    
Player[playerid][pLogado] = false;
    return 
1;

Enquanto os Zumbis entraram com um monte de erros os outros NPC soldados conseguiram sem nenhum erro.
Reply
#2

No gamemode, procure pela linha:
PHP Code:
#define MAX_PLAYERS 100 
E altere conforme os slots do servidor.
Reply
#3

Quote:
Originally Posted by RodrigoMSR
View Post
No gamemode, procure pela linha:
PHP Code:
#define MAX_PLAYERS 100 
E altere conforme os slots do servidor.
Muito obrigado funcionou perfeitamente!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)