getting "unkown command" in /SetClan command, please help
#1

hey guys,
the command is compiling successful, but when i use it in the server (/setclan is working, *example: /setclan 0 test is not working, it says Unknown Command).
i would be thankful if you`ll help me to resolve the problem...
btw sorry for my English, i`m still learning it.
PHP Code:
    if(!strcmp(cmd,"/SetClan"true))
    {
        if(
DOF2_GetInt(GetAdminFile(playerid),"IsAdmin")==0) return UnKnownCommand;
        if(
DOF2_GetInt(GetAdminFile(playerid),"AdminLevel") < 1) return SendClientMessage(playerid,COLOR_RED,"/SetClan - азшай чмарйн");
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) return SendClientMessage(playeridCOLOR_WHITE"/SetClan [ID] [Clan] :цешъ щйоещ");
        
id strval(tmp);
        if(!
IsPlayerConnected(playerid)) return SendClientMessage(playeridCOLOR_RED"!айгй щвей");
        if(
DOF2_IsSet(PClanFile(playerid), "InClan")) return SendClientMessage(playeridCOLOR_RED".щзчп жд лбш роца бчмап");
        
tmp1 strtok(cmdtextidx);
        if(!
strlen(tmp1)) return SendClientMessage(playeridCOLOR_WHITE"/SetClan [ID] [Clan] :цешъ щйоещ");
        
format(ClanFilesizeof(ClanFile), "Players/Clans/%d.txt"CNameByID(DOF2_GetString(PClanFile(playerid),"Clan")));
        
DOF2_SetInt(ClanFile"ClanPlayers"DOF2_SetInt(ClanFile"ClanPlayers") +1);
        
DOF2_SetInt(PClanFile(playerid), "ClanLevel"1);
        
DOF2_SetString(PClanFile(id), "Clan"tmp1);
        new 
String[128];
        
format(Stringsizeof (String), "{FFFFFF}%s {00AFFF}ам ъек дчмап {FFFFFF}%s {00AFFF}длрсъ аъ дщзчп"DOF2_GetInt(PClanFile(playerid), "Clan"), GetName(playerid));
        
SendClientMessage(playeridCOLOR_WHITEString);
    
//    new String[128];
        
format(Stringsizeof (String), "{FFFFFF}%s {00AFFF}длрйс аеък ам дчмап {FFFFFF}%s {00AFFF}ордм дчмарйн"DOF2_GetInt(PClanFile(playerid), "Clan"), GetName(playerid));
        
SendClientMessage(playeridCOLOR_WHITEString);
        return 
1;
    } 
Reply


Messages In This Thread
getting "unkown command" in /SetClan command, please help - by asafasaf - 23.04.2017, 17:42
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 23.04.2017, 18:18
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 23.04.2017, 18:35
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 23.04.2017, 19:24
Re: getting "unkown command" in /SetClan command, please help - by MrViolence101 - 23.04.2017, 19:36
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 23.04.2017, 19:38
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 23.04.2017, 20:30
Re: getting "unkown command" in /SetClan command, please help - by Sew_Sumi - 23.04.2017, 20:50
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 09:34
Re: getting "unkown command" in /SetClan command, please help - by edyun - 24.04.2017, 10:05
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 11:42
Re: getting "unkown command" in /SetClan command, please help - by Sew_Sumi - 24.04.2017, 11:46
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 11:53
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 12:44
Re: getting "unkown command" in /SetClan command, please help - by DarkSkull - 24.04.2017, 13:08
Re: getting "unkown command" in /SetClan command, please help - by edyun - 24.04.2017, 13:29
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 13:50
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 13:52
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 15:51
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 24.04.2017, 20:06
Re: getting "unkown command" in /SetClan command, please help - by Sew_Sumi - 24.04.2017, 20:27
Re: getting "unkown command" in /SetClan command, please help - by asafasaf - 28.04.2017, 09:55

Forum Jump:


Users browsing this thread: 8 Guest(s)