CMD:rankname doesnt save
#2

First off, you should change the sscanf line in your command to something like this:
Код:
    new playerb, rank[64], string[128];
    if(sscanf(params, "us", playerb, rank)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /rankname [playerid] [rank]");
Second, make sure your string sizes are all equal (this isn't the cause of the problem, just to prevent irregularities. These should all be the same number (60 or 64)

Код:
pFacRanN[60],
format(PlayerInfo[playerid][pFacRanN], 60, "%s", dini_Get(file, "FacRanN"));
format(PlayerInfo[playerid][pFacRanN], 64, "");
Finally, the cause of your problem

Код:
dini_IntSet(file, "FacRankN", PlayerInfo[playerid][pFacRanN]);
Since the faction rank name is a string not an integer this needs to be changed to:

Код:
dini_Set(file, "FacRankN", PlayerInfo[playerid][pFacRanN]);
Hope this helps, good luck.
Reply


Messages In This Thread
CMD:rankname doesnt save - by lulo356 - 15.12.2014, 01:23
Re: CMD:rankname doesnt save - by Divergent - 15.12.2014, 05:10
Re: CMD:rankname doesnt save - by AmirSlaYeR - 15.12.2014, 19:06
Re: CMD:rankname doesnt save - by lulo356 - 15.12.2014, 19:35
Re: CMD:rankname doesnt save - by lulo356 - 15.12.2014, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)