/unban problem
#1

pawn Код:
if (strcmp(cmd, "/unban", true)==0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 5)
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /unban [playername]");
                return 1;
            }
            else
            {
                new filename[256];
                new Float:hFile;
                hFile = format(filename,sizeof(filename), "%s.ini", tmp);
                dini_IntSet(filename, "Ban", false);
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
        }
        return 1;
    }
the problem is i got the file details like this:
pawn Код:
Ban=1Key=1251DriveLicense=1
but .. when i unban user, its change it to:
pawn Код:
Ban=1
Key=1251
DriveLicense=1
then the file not working anymore. how to fix this ?
Reply
#2

what do you mean?
Reply
#3

its not working well, steal got the problem.
Reply
#4

make sure its a back slash \ not the regular slash like you use commands so not /
Reply
#5

when i put \n.
pawn Код:
Ban
=0
i need it will stay in txt format but in .ini
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)