15.12.2014, 19:06
Quote:
First off, you should change the sscanf line in your command to something like this: Code: 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) Code: pFacRanN[60], format(PlayerInfo[playerid][pFacRanN], 60, "%s", dini_Get(file, "FacRanN")); format(PlayerInfo[playerid][pFacRanN], 64, ""); Finally, the cause of your problem Code: dini_IntSet(file, "FacRankN", PlayerInfo[playerid][pFacRanN]); Since the faction rank name is a string not an integer this needs to be changed to: Code: dini_Set(file, "FacRankN", PlayerInfo[playerid][pFacRanN]); Hope this helps, good luck. |