SERVER:Unknown command. error even the command works well
#1

As of the topic command works well as the way that I want to, but the problem is... server says it's an Invalid command

Код:
CMD:exit (playerid, params[])
{
    if(INMINIGAME[playerid] == false) return SendClientMessage(playerid, COLOR_ERROR, "You are not in a minigame");
    INMINIGAME[playerid] = false;
    if(INDM[playerid] == true)
    {
        ResetPlayerWeapons(playerid);
        INDM[playerid] = false;
        //spawn info here
        PlayerTextDrawHide(playerid, DM0); 
        PlayerTextDrawHide(playerid, DM1);
        PlayerTextDrawHide(playerid, DM2);     
        PlayerTextDrawHide(playerid, DM3);     
        PlayerTextDrawHide(playerid, DM4);
        PlayerTextDrawHide(playerid, DM5);                    
        if(DMID[playerid] == 1)
        {
            DM1PLAYERS--;
            new string[128];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            format(string,sizeof(string),"{FFFF00}%s {800000}has left dm1",name);
            SendClientMessageToAll(COLOR_LEFT, string);
        }
        else if(DMID[playerid] == 2)
        {
            DM2PLAYERS--;
            new string[128];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            format(string,sizeof(string),"{FFFF00}%s {800000}has left dm2",name);
            SendClientMessageToAll(COLOR_LEFT, string);
        }
        else if(DMID[playerid] == 3)
        {
            DM3PLAYERS--;
            new string[128];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            format(string,sizeof(string),"{FFFF00}%s {800000}has left dm3",name);
            SendClientMessageToAll(COLOR_LEFT, string);
        }
        else if(DMID[playerid] == 4)
        {
            DM4PLAYERS--;
            new string[128];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            format(string,sizeof(string),"{FFFF00}%s {800000}has left dm4",name);
            SendClientMessageToAll(COLOR_LEFT, string);
        }
        else if(DMID[playerid] == 5)
        {
            DM5PLAYERS--;
            new string[128];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            format(string,sizeof(string),"{FFFF00}%s {800000}has left dm5",name);
            SendClientMessageToAll(COLOR_LEFT, string);
        }
        for(new i = 0; i < sizeof pWeapons; i++) 
        {
            GivePlayerWeapon(playerid, pWeapons[playerid][0][i], pWeapons[playerid][1][i]);
        }
    }
    return 1;     
}
there are some other mini games except DM that's y there's a var called "INMINIGAME" but any way I removed others and only put codes relevent to DM

The error SERVER:Unknown command starts giving me that message when I put the part in red (loop)

help plz
Reply


Messages In This Thread
SERVER:Unknown command. error even the command works well - by GameOvr - 01.09.2018, 16:55
Re: SERVER:Unknown command. error even the command works well - by NeXTGoD - 01.09.2018, 17:30
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 02.09.2018, 16:22
Re: SERVER:Unknown command. error even the command works well - by ShihabSoft - 03.09.2018, 19:06
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 05.09.2018, 13:44
Re: SERVER:Unknown command. error even the command works well - by Sew_Sumi - 05.09.2018, 14:35
Re: SERVER:Unknown command. error even the command works well - by YouHack - 05.09.2018, 14:39
Re: SERVER:Unknown command. error even the command works well - by Sew_Sumi - 05.09.2018, 14:47
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 05.09.2018, 14:55
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 05.09.2018, 14:59
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 05.09.2018, 15:01
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 05.09.2018, 15:05
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 05.09.2018, 15:07
Re: SERVER:Unknown command. error even the command works well - by Sew_Sumi - 05.09.2018, 15:10
Re: SERVER:Unknown command. error even the command works well - by YouHack - 05.09.2018, 15:13
Re: SERVER:Unknown command. error even the command works well - by Sew_Sumi - 05.09.2018, 15:18
Re: SERVER:Unknown command. error even the command works well - by Sew_Sumi - 05.09.2018, 15:42
Re: SERVER:Unknown command. error even the command works well - by ShihabSoft - 05.09.2018, 16:05
Re: SERVER:Unknown command. error even the command works well - by GameOvr - 07.09.2018, 11:08
Re: SERVER:Unknown command. error even the command works well - by ShihabSoft - 07.09.2018, 12:59
Re: SERVER:Unknown command. error even the command works well - by SyS - 07.09.2018, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)