Help with dini_IntSet
#1

i dont found an error when im compile it, but i this cmd was not working..
this is the code :
pawn Код:
if(strcmp(cmd, "/hapuskan", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /removeucp [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
            {
                  new file[64];
                  new name[MAX_PLAYER_NAME];
                  tmp = strtok(cmdtext, idx);
                  GetPlayerName(playerid, name, sizeof(name));
                  if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /removeucp [playername]");
                  format(file, sizeof(file),"LARP/Users/%s.ini", name); //am i wrong??
                  if(!fexist(file))
                  {
                    dini_IntSet(file, "Pending", 0); //am i wrong?
                    GetPlayerName(playerid, name, sizeof(name));
                  }
                  return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, "You cant use this Commands!! (admin only)");
                return 1;
            }
        }
    }
i want set the dini_IntSet to " 0 " but, nothing happen
help me..
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: 1 Guest(s)