Wont save
#1

Код:
IRCCMD:setadmin(botid, channel[], user[], host[], params[])
{

	new NameBan[128],derpfile[128],playerid,level;
	if (sscanf(params, "si", NameBan,level)) return IRC_GroupSay(gGroupID, channel,"4USAGE:3 !setadmin <name> <level>");
    if(IRC_IsOwner(botid, channel, user))
    {
	    format(derpfile, 128, "/myserver/%s.ini", NameBan,level);
		if(dini_Exists(derpfile))
		{
			new setadmin[64];
			admin[playerid] = level;
			format(setadmin,sizeof(setadmin), "addadmin %s", dini_Get(derpfile, "Admin Level"));
			format(setadmin,sizeof(setadmin), "4%s3 has given 4%s3 admin level4 %d", NameBan,user,level);
			IRC_GroupSay(gGroupID, channel, setadmin);
		}
		else
		{
			return IRC_GroupSay(gGroupID, channel,"4Name doens't exist!");
		}
	}
	return 1;
}
Please help me if i use !setadmin name level on irc it add it, also ingame. but if i gmx it turns again to 0;. someone help?
Reply
#2

I guess the player has to login, you make him a Admin, log out and login again before GMX to save his information.
Reply
#3

Yea, if i logout and in and gmx then it save, but is there something, if you gmx stats will be autosaved.
Reply
#4

^^ up 3 page
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)