[Help] Maybe a easy question for dini users
#1

Hey, i have a little problem with some dini stuff.

I want it to save Admin name and Playername in a dini file, but when i ban myself it says my name is 14?

heres my scanf for the kick command
pawn Code:
if (sscanf(params, "uz", id, reason)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/Kick <ID / Part of name> <Reason>\"");
        else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "\t [Server]: Player not found");
        else if (id == playerid) SendClientMessage(playerid, 0xFF0000AA, "\t [Server]: You cannot ban yourself!");
        else
This is a quote from my script
pawn Code:
if(!fexist(KickLog))
            {
                dini_Create(KickLog);
                dini_IntSet(KickLog, "Kicked Users", dini_Int(KickLog, "Kicked Users")+1);
                dini_IntSet(KickLog, "Name", GetPlayerName(id, idname, sizeof(idname)));
    //          dini_IntSet(KickLog, "Reason", reason);
                dini_IntSet(KickLog, "Administrator", GetPlayerName(playerid, pname, sizeof(pname)));
                dini_IntSet(KickLog, "0----------", -0);
            }
and heres a quote from my kicklog
Code:
Name=14
Administrator=14
Why, how, who ?
it looks fine to me, and theres no errors?
(i just learned dini)
Reply


Messages In This Thread
[Help] Maybe a easy question for dini users - by Niixie - 21.01.2010, 17:47
Re: [Help] Maybe a easy question for dini users - by Joe Staff - 21.01.2010, 17:58
Re: [Help] Maybe a easy question for dini users - by Niixie - 21.01.2010, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)