#2

Can you insert declarations of PlayerInfo with structure and CSpeedStats?
And, if you can, please run this code and show logs.
Код:
public OnPlayerSpawn( playerid )
{
        new ServerHour, ServerMinute, ServerSecond;
	gettime( ServerHour, ServerMinute, ServerSecond );
	
        print("OnPlayerSpawn was called");
	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 );
        print("First breakpoint");
 	CSpeedStats[ playerid ] = 1;
 	HideIntroTextdraws( playerid );
        Jail_EvadeCheck( playerid );
	Freeze_EvadeCheck( playerid );
	CheckDMInfo( playerid );
        print("Second breakpoint");
	
	PlayerInfo[ playerid ][ InDerby ] = 0;
	if( PlayerInfo[ playerid ][ UseSkin ] == 1 )
		SetPlayerSkin( playerid, PlayerInfo[ playerid ][ FavSkin ] );
		
        print("Third breakpoint");
        if( PlayerInfo[ playerid ][ HideTDS ] == 0 )
		ShowSpawnTextdraws( playerid );
		
        print("Fourth breakpoint");
        if( PlayerInfo[ playerid ][ InMG ][ 0 ] == 1 )
    	        SetPlayerPos( playerid, - 786.646484, 2300.745849, 66.580314 );
    	
        print("End of OnPlayerSpawn");
    return 1;
}
By printing we'll point of error.
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: 4 Guest(s)