Need help with saving skin permission
#9

When you save the player, add this (dini)
pawn Код:
dini_IntSet(file, "SkinPerm", SkinPermission[playerid]);
That sets their skin permission. Now, when you load it, do this.

pawn Код:
SkinPermission[playerid] = dini_Int(file, "SkinPerm");
Since you may not have file defined, do this each time you use it, before the code:

pawn Код:
new file[80], name[MAX_PLAYER_NAME];
format(file,sizeof(file),"Users/%s.ini", GetPlayerName(playerid, name, sizeof(name)); //Example
Change "Users/%s.ini" to the file location. So if you were just putting it in the scriptfiles folder, remove "Users/"

Hope I helped.
Reply


Messages In This Thread
Need help with saving skin permission - by bartje01 - 02.02.2010, 12:16
Re: Need help with saving skin permission - by m0niSx - 02.02.2010, 12:19
Re: Need help with saving skin permission - by WrathOfGenesis - 02.02.2010, 12:19
Re: Need help with saving skin permission - by bartje01 - 02.02.2010, 12:23
Re: Need help with saving skin permission - by bartje01 - 02.02.2010, 13:16
Re: Need help with saving skin permission - by bartje01 - 02.02.2010, 14:06
Re: Need help with saving skin permission - by bartje01 - 02.02.2010, 17:18
Re: Need help with saving skin permission - by UserName31 - 26.06.2012, 20:34
Re: Need help with saving skin permission - by Kindred - 26.06.2012, 20:43

Forum Jump:


Users browsing this thread: 2 Guest(s)