06.05.2017, 15:46
Quote:
[16:32:36] [debug] Run time error 4: "Array index out of bounds" [16:32:36] [debug] Accessing element at index 6 past array upper bound 5 [16:32:36] [debug] AMX backtrace: [16:32:36] [debug] #0 0008bc08 in public PoolZombeys () at C:\x.pwn:6795 [16:32:37] [Zombeydere] 3 Zombeys successfully spawned. [16:32:37] [Zombeydere] 3 Dummy zombies were kicked. [16:32:37] [connection] incoming connection: 64.110.27.130:49676 id: 0 [16:32:37] [npc:join] [NPC]Hunter has joined the server (0:64.110.27.130) |
Код:
public PoolZombeys() { new name[MAX_PLAYER_NAME],zombey; format(name,sizeof name,"Z%d%d%d",random(10),random(200),random(500)); zombey = ConnectRNPC(name); NPCdere[zombey][dArea] = -1; // 6795 NPCdere[zombey][dPool] = true; if(zombey < DUMMY_QUANT + MAX_ZOMBEY) SetTimer("PoolZombeys",70,false); return 1; }