Server crash on command
#3

I corrected some of your mistakes here, You probably didn''t compile it before running it into your server..
Код:
CMD:hns( playerid, params[ ] )
{
    if ( IsPlayerInAnyVehicle( playerid ) )
    return TD_MSG( playerid, 3000, "~r~~h~Please exit the vehicle!");
    if (Iter_Count(HNS_Rank) > 20)
    return SendClientMessage(playerid,COLOR_RED,""RED"Hide'N'Seek "WHITE"is full!");
    if ( HNS_StartedEx == 1 )
    return SendClientMessage(playerid,COLOR_RED,""RED"Hide'N'Seek "WHITE"has started!");
    PlayerInfo[ playerid ][ ActionID ] = 9;
    if ( HNS_Started == 0 )
    {
        SavePlayerCoords(playerid);
        PlayerInfo[ playerid ][ inMini ] = 1;
        Iter_Add(HNS_Rank, playerid);
        Iter_Add(Var_Seeker, playerid);
        HNS_Started = 1;
        HNS_Count = 60;
        GameTextForAll( "~g~~h~Hide'N'Seek ~w~minigame starting in ~r~60 ~w~seconds! ~g~~h~/hns ~w~to join!", 3000, 4 );
        SetTimerEx( "StartSeek", 1000, 0, "i", playerid );
        TogglePlayerControllable( playerid, false );
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon( playerid, 38, 99999 );
        SetPlayerInterior( playerid, 2 );
        SetPlayerPos( playerid, 2567.6086, -1294.1406, 1063.2520 );
        SetPlayerFacingAngle( playerid, 6.9141 );
        SetCameraBehindPlayer( playerid );
        return ( 1 );
    }
    else
    {
        SavePlayerCoords(playerid);
        Iter_Add(HNS_Rank, playerid);
        TD_MSG( playerid, 3000, "~w~Use ~r~~h~/hideme ~w~when you're hidden!" );
        ResetPlayerWeapons( playerid );
        SetPlayerInterior( playerid, 2 );
        SetPlayerPos( playerid, 2559.0579, -1297.1764, 1060.9844 );
        SetPlayerFacingAngle( playerid, 263.8967 );
    }
    new string3[128];
    format(string3,sizeof string3,"~R~[MG] - ~w~%s ~W~has teleported to(/HNS)!",GetName( playerid ));
    SendBoxMsg(string3);
    return 1;
}
Reply


Messages In This Thread
Server crash on command +rep - by fireranger11 - 19.05.2017, 18:05
Re: Server crash on command - by Kane - 19.05.2017, 21:47
Re: Server crash on command - by zedshadowzw - 20.05.2017, 00:21
Re: Server crash on command - by fireranger11 - 20.05.2017, 09:56
Re: Server crash on command - by fireranger11 - 20.05.2017, 09:59
Re: Server crash on command - by fireranger11 - 21.05.2017, 11:14
Re: Server crash on command - by fireranger11 - 22.05.2017, 11:03
Re: Server crash on command - by fireranger11 - 23.05.2017, 11:42
Re: Server crash on command - by YouHack - 23.05.2017, 12:09
Re: Server crash on command - by DRIFT_HUNTER - 23.05.2017, 12:32

Forum Jump:


Users browsing this thread: 3 Guest(s)