SA-MP Forums Archive
Wont save - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wont save (/showthread.php?tid=316907)



Wont save - [HM]Nicky - 09.02.2012

Код:
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?


Re: Wont save - Chrillzen - 09.02.2012

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


Re: Wont save - [HM]Nicky - 09.02.2012

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


Re: Wont save - [HM]Nicky - 09.02.2012

^^ up 3 page