Help with dini_IntSet
#7

pawn Код:
if(strcmp(cmd, "/hapuskan", true) == 0)
{
    if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /removeucp [playerid/PartOfName]");
            return 1;
        }
        new file[64];
        format(file, sizeof(file),"LARP/Users/%s.ini", tmp);
        if(fexist(file))
        {
            dini_IntSet(file, "Pending", 0);
            SendClientMessage(playerid, COLOR_GRAD2, "Pending=0");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Player with that name doesn't exist!");
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD2, "You cant use this Commands!! (admin only)");
    }
    return 1;
}
Reply


Messages In This Thread
Help with dini_IntSet - by Tama - 03.05.2011, 16:23
Re: Help with dini_IntSet - by jonnyboy - 03.05.2011, 16:26
Re: Help with dini_IntSet - by Tama - 03.05.2011, 16:30
Re: Help with dini_IntSet - by jonnyboy - 03.05.2011, 16:37
Re: Help with dini_IntSet - by MadeMan - 03.05.2011, 16:41
Re: Help with dini_IntSet - by Tama - 03.05.2011, 16:54
Re: Help with dini_IntSet - by MadeMan - 03.05.2011, 16:59
Re: Help with dini_IntSet - by Xaviour212 - 10.05.2011, 16:04

Forum Jump:


Users browsing this thread: 2 Guest(s)