21.01.2010, 17:47
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
This is a quote from my script
and heres a quote from my kicklog
Why, how, who ?
it looks fine to me, and theres no errors?
(i just learned dini)
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
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);
}
Code:
Name=14 Administrator=14
it looks fine to me, and theres no errors?
(i just learned dini)