03.08.2009, 12:41
Run time error 4: "Array index out of bounds" I know what it mean but there is nothing like that in the script what can I do to fix it?
SA:MP Dedicated Server ---------------------- v0.2X, ©2005-2008 SA:MP Team [15:47:01] [15:47:01] Server Plugins [15:47:01] -------------- [15:47:01] Loaded 0 plugins. [15:47:01] [15:47:01] Filter Scripts [15:47:01] --------------- [15:47:01] Loaded 0 filter scripts. [15:47:01] [15:47:01] Nord City RolePlay 4.0.0 June 30 [15:47:01] Copyright © Mate Peter & Torok Laszlo 2007-2009 [15:47:01] http://NordCityRolePlay.co.cc [15:47:01] [15:47:01] MySQL Disabled [15:47:01] Streamer Disabled [15:47:01] Audio Disabled [15:47:01] Script[gamemodes/ncrp.amx]: Run time error 4: "Array index out of bounds" [15:47:03] --- Server Shutting Down. [15:47:03]
new IndexArray[MAX_PLAYERS];
OnGameModeInit()
{
for(new i; i<=MAX_PLAYERS;i++)
{
...something using IndexArray[i]...
}
}