28.03.2019, 13:29
@RajatAsthana thanks!
@Variable™, in the case if textdraws not needed you can use ScoreName(playerid), MoneyName(playerid) in your /stats command just like this:
Example:
You can use boths functions anywhere,
I just used it for textdraws this time
Well anyways thanks for advices and comments
@Variable™, in the case if textdraws not needed you can use ScoreName(playerid), MoneyName(playerid) in your /stats command just like this:
Quote:
new playerranks[728]; format(playerranks, sizeof(playerranks), "{00FFFF}S{FFFFFF}cores: %d ({00FF00}%s{FFFFFF}) \n{00FFFF}C{FFFFFF}ash: %d ({00FF00}%s{FFFFFF})",GetPlayerScore(playerid), ScoreName(playerid), GetPlayerMoney(playerid), MoneyName(playerid)); |
Code:
CMD:myrank(playerid,params[]) { new playerranks[728]; format(playerranks, sizeof(playerranks), "{00FFFF}S{FFFFFF}cores: %d ({00FF00}%s{FFFFFF}) \n{00FFFF}C{FFFFFF}ash: %d ({00FF00}%s{FFFFFF})",GetPlayerScore(playerid), ScoreName(playerid), GetPlayerMoney(playerid), MoneyName(playerid)); ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"My Rank",strz,"Close",""); return 1; }
I just used it for textdraws this time
Well anyways thanks for advices and comments