Small help with my command.
#2

Can you show ur pName stock function?

Try this too:
PHP код:
if(strcmp(cmd"/clearaka"true) == 0)
    {
        if(
AccInfo[playerid][Level] >= 1)
        {
            if(!
strlen(params)) return
            
SendClientMessage(playeridLIGHTBLUE"[ USAGE: /clearaka (player<name/id>) ]") &&
            
SendClientMessage(playeridLIGHTBLUE2"[ FUNCTION: Will clear the AKA of the specified player. ]");
            new 
player1 strval(params);
            if(
AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
                return 
SendClientMessage(playerid,red,"[ ERROR: You cannot use this command on this admin. ]");
            if(
IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
            {
                new 
tmp3[100], file[100], file1[100], Name[25];
                
GetPlayerName(playeridNamesizeof(Name));
                
GetPlayerIp(player1,tmp3,50);
                
format(file,sizeof(file),"/Database/Config/aka.txt");
                
SendCommandToAdmins(playerid,"clearAKA");
                
dini_IntSet(file1,tmp3,Name);//This is where I get an error.
                
return 1;
            }
            else return 
ErrorMessages(playerid2);
        }
        else return 
ErrorMessages(playerid1);
    } 
Reply


Messages In This Thread
Small help with my command. - by Sc0pion - 27.07.2015, 02:24
Re: Small help with my command. - by PMH - 27.07.2015, 02:58
Re: Small help with my command. - by Sc0pion - 27.07.2015, 11:31
AW: Small help with my command. - by Macronix - 27.07.2015, 13:59
Re: Small help with my command. - by Sc0pion - 27.07.2015, 16:45
AW: Small help with my command. - by Mencent - 27.07.2015, 16:58
Re: AW: Small help with my command. - by Sc0pion - 27.07.2015, 17:06
AW: Small help with my command. - by Mencent - 27.07.2015, 17:26
Re: Small help with my command. - by xVIP3Rx - 27.07.2015, 17:27
Re: Small help with my command. - by Sc0pion - 27.07.2015, 17:36

Forum Jump:


Users browsing this thread: 3 Guest(s)