15.12.2014, 05:10
First off, you should change the sscanf line in your command to something like this:
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)
Finally, the cause of your problem
Since the faction rank name is a string not an integer this needs to be changed to:
Hope this helps, good luck.
Код:
new playerb, rank[64], string[128]; if(sscanf(params, "us", playerb, rank)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /rankname [playerid] [rank]");
Код:
pFacRanN[60], format(PlayerInfo[playerid][pFacRanN], 60, "%s", dini_Get(file, "FacRanN")); format(PlayerInfo[playerid][pFacRanN], 64, "");
Код:
dini_IntSet(file, "FacRankN", PlayerInfo[playerid][pFacRanN]);
Код:
dini_Set(file, "FacRankN", PlayerInfo[playerid][pFacRanN]);