#1

Hello there friends, i'm FaLLenGirL.
I need some little help with this problem:


Error in the console:
[16:27:17] [debug] Run time error 4: "Array index out of bounds"
[16:27:17] [debug] Accessing element at index 10 past array upper bound 6
[16:27:17] [debug] AMX backtrace:
[16:27:17] [debug] #0 00090318 in ?? (0) from ISF.amx
[16:27:17] [debug] #1 0002faac in public OnPlayerSpawn (0) from ISF.amx


OnPlayerSpawn Public:
Код:
public OnPlayerSpawn( playerid )
{
        new ServerHour, ServerMinute, ServerSecond;
	gettime( ServerHour, ServerMinute, ServerSecond );
	
	SetupPlayerForGang( playerid, PlayerInfo[ playerid ][ GangID ] );
	Attach3DTextLabelToPlayer( PlayerState[ playerid ], playerid, 0.0, 0.0, 0.5 );
        ShowZonesForPlayer( playerid );
        HideClassTD( playerid );
	God_Mode_Verify( playerid );
        SetPlayerInterior( playerid, 0 );
	SetPlayerSpecialAction( playerid, 0 );
	SetPlayerTime( playerid, ServerHour, 0 );
	SetPlayerVirtualWorld( playerid, 0 );
 	CSpeedStats[ playerid ] = 1;
 	HideIntroTextdraws( playerid );
        Jail_EvadeCheck( playerid );
	Freeze_EvadeCheck( playerid );
	CheckDMInfo( playerid );
	
	PlayerInfo[ playerid ][ InDerby ] = 0;
	if( PlayerInfo[ playerid ][ UseSkin ] == 1 )
		SetPlayerSkin( playerid, PlayerInfo[ playerid ][ FavSkin ] );
		
        if( PlayerInfo[ playerid ][ HideTDS ] == 0 )
		ShowSpawnTextdraws( playerid );
		
        if( PlayerInfo[ playerid ][ InMG ][ 0 ] == 1 )
    	        SetPlayerPos( playerid, - 786.646484, 2300.745849, 66.580314 );
    	
    return 1;
}
Please, if someone can help me, reply.
You also can contact me on, skype: cristina.muresan35.
Reply


Messages In This Thread
Help: Run time error 4: "Array index out of bounds" - by FaLLenGirL - 04.11.2016, 16:42
Re: Help - by Desaint - 04.11.2016, 18:38
Re: Help - by Vince - 04.11.2016, 19:46
Re: Help - by FaLLenGirL - 04.11.2016, 21:13
Re: Help - by FaLLenGirL - 05.11.2016, 07:27
Re: Help: Run time error 4: "Array index out of bounds" - by FaLLenGirL - 05.11.2016, 11:37
Re: Help - by Desaint - 05.11.2016, 16:40
Re: Help - by FaLLenGirL - 05.11.2016, 18:12

Forum Jump:


Users browsing this thread: 3 Guest(s)