02.03.2017, 22:11
hey so I have this string for but it isn't working good
the problem is it is reading from the file that give it the names and every thing it is saying that you current rant is: uest there is G isn't saying it
and here the pRank(playerid)
PHP код:
CMD:rank(playerid, params[])
{
new string[380];
format(string,sizeof(string), "Your Current Rank Is:%s", pRank(playerid));
SendClientMessage(playerid, COLOR_GREEN, string);
//if(!strcmp(Rank[i],"RANKNAME")){}
return 1;
}
and here the pRank(playerid)
PHP код:
stock pRank(playerid)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
dini_Get(AddDirFile(dir_userfiles, playername), "Rank");
return 1;
}