command CMD: ranks dont work
#1

CMD:ranks(playerid)
{
new string[156], dialogstr[sizeof(string) * sizeof(gRank)];
strcat(dialogstr, "Rank\tRank name\tScore\n");
for(new i; i < sizeof(gRank); i++)
{
if(GetPlayerRank(playerid) >= i) format(string, sizeof(string), ""SAMP_BLUE"%i.\t"SAMP_BLUE"%s\t"SAMP_BLUE"%i+ score\n", i, gRank[i][r_name], gRank[i][r_score]);
else format(string, sizeof(string), ""GREY"%i.\t"GREY"%s\t"GREY"%i+ score\n", i, gRank[i][r_name], gRank[i][r_score]);
strcat(dialogstr, string);

ShowPlayerDialog(playerid, DIALOG_COMMON, DIALOG_STYLE_TABLIST_HEADERS, "Ranks list", dialogstr, "Close", "");
return 1;
}







THAT S THE COMMAND BUT IN-GAME IT SAYS UNKNOWN COMMAND ! PLEASE HELP
I ADDED SOME RANKS THAT WORKS IN GAME WITH /RANK BUT I CANT SEE THE RANK LIST WTF
Reply


Messages In This Thread
command CMD: ranks dont work - by DeX24 - 15.09.2017, 17:19
Re: command CMD: ranks dont work - by Meller - 15.09.2017, 17:25
Re: command CMD: ranks dont work - by DeX24 - 15.09.2017, 17:27
Re: command CMD: ranks dont work - by DeX24 - 15.09.2017, 17:34
Re: command CMD: ranks dont work - by Meller - 15.09.2017, 17:46
Re: command CMD: ranks dont work - by DeX24 - 15.09.2017, 17:56
Re: command CMD: ranks dont work - by Meller - 15.09.2017, 17:59

Forum Jump:


Users browsing this thread: 2 Guest(s)