09.03.2018, 05:21
Help me with this error please I don't know what is wrong :
[01:01:58] [npc:join] Zombie_0 has joined the server (398:127.0.0.1)
[01:01:58] [npc:join] Zombie_1 has joined the server (397:127.0.0.1)
[01:01:58] [npc:join] Zombie_2 has joined the server (396:127.0.0.1)
[01:01:58] [npc:join] Zombie_3 has joined the server (395:127.0.0.1)
[01:01:58] [npc:join] Zombie_4 has joined the server (394:127.0.0.1)
[01:01:58] [npc:join] Zombie_5 has joined the server (393:127.0.0.1)
[01:01:58] [npc:join] Zombie_6 has joined the server (392:127.0.0.1)
[01:01:58] [npc:join] Zombie_7 has joined the server (391:127.0.0.1)
[01:01:58] [npc:join] Zombie_8 has joined the server (390:127.0.0.1)
[01:01:58] [npc:join] Zombie_9 has joined the server (389:127.0.0.1)
[01:01:58] [npc:join] Zombie_10 has joined the server (388:127.0.0.1)
[01:01:58] [npc:join] Zombie_11 has joined the server (387:127.0.0.1)
[01:01:58] [npcart] Zombie_11 has left the server (387:2)
[01:01:58] [debug] Run time error 4: "Array index out of bounds"
[01:01:58] [debug] Accessing element at index 387 past array upper bound 324
[01:01:58] [FCNPC] Error: NPC 'Zombie_11' not created. Name 'Zombie_11' is invalid or the maxnpc limit in server.cfg has been reached.
[01:01:58] [debug] Run time error 4: "Array index out of bounds"
[01:01:58] [debug] Accessing element at index 65535 past array upper bound 398
[01:01:58] [debug] AMX backtrace:
[01:01:58] [debug] #0 003fb970 in crearBarraSalud (npcid=65535) at x\x.pwn:65690
Line 65690: labelZombies[npcid] = Create3DTextLabel(string, -1, 0, 0, 0, 100.0, 0, 1);
and on my server.cfg I have this:
So I don't know where is the error
[01:01:58] [npc:join] Zombie_0 has joined the server (398:127.0.0.1)
[01:01:58] [npc:join] Zombie_1 has joined the server (397:127.0.0.1)
[01:01:58] [npc:join] Zombie_2 has joined the server (396:127.0.0.1)
[01:01:58] [npc:join] Zombie_3 has joined the server (395:127.0.0.1)
[01:01:58] [npc:join] Zombie_4 has joined the server (394:127.0.0.1)
[01:01:58] [npc:join] Zombie_5 has joined the server (393:127.0.0.1)
[01:01:58] [npc:join] Zombie_6 has joined the server (392:127.0.0.1)
[01:01:58] [npc:join] Zombie_7 has joined the server (391:127.0.0.1)
[01:01:58] [npc:join] Zombie_8 has joined the server (390:127.0.0.1)
[01:01:58] [npc:join] Zombie_9 has joined the server (389:127.0.0.1)
[01:01:58] [npc:join] Zombie_10 has joined the server (388:127.0.0.1)
[01:01:58] [npc:join] Zombie_11 has joined the server (387:127.0.0.1)
[01:01:58] [npcart] Zombie_11 has left the server (387:2)
[01:01:58] [debug] Run time error 4: "Array index out of bounds"
[01:01:58] [debug] Accessing element at index 387 past array upper bound 324
[01:01:58] [FCNPC] Error: NPC 'Zombie_11' not created. Name 'Zombie_11' is invalid or the maxnpc limit in server.cfg has been reached.
[01:01:58] [debug] Run time error 4: "Array index out of bounds"
[01:01:58] [debug] Accessing element at index 65535 past array upper bound 398
[01:01:58] [debug] AMX backtrace:
[01:01:58] [debug] #0 003fb970 in crearBarraSalud (npcid=65535) at x\x.pwn:65690
Line 65690: labelZombies[npcid] = Create3DTextLabel(string, -1, 0, 0, 0, 100.0, 0, 1);
Код:
stock crearZombies() { new name[MAX_PLAYER_NAME + 1 ]; for(new i = 0; i<MAX_ZOMBIES; i++) { format(name, sizeof(name), "Zombie_%d", i); crearZombie(name); } }
Код:
#define MAX_ZOMBIES 300 #undef MAX_PLAYERS #define MAX_PLAYERS MAX_ZOMBIES+99
Quote:
maxplayers 399 maxnpc 399 |