27.12.2014, 22:59
Hi, I have prepared such a system to create a more pleasing appearance, I wish you good use.
IMAGE
DOWNLOAD
CLICK ME!
if(GetPlayerMoney(playerid) >= 0 && GetPlayerMoney(playerid) <= 9) { format(_yeniPara, sizeof _yeniPara, "$0000000%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 10 && GetPlayerMoney(playerid) <= 99) { format(_yeniPara, sizeof _yeniPara, "$000000%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 100 && GetPlayerMoney(playerid) <= 999) { format(_yeniPara, sizeof _yeniPara, "$00000%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 1000 && GetPlayerMoney(playerid) <= 9999) { format(_yeniPara, sizeof _yeniPara, "$0000%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 10000 && GetPlayerMoney(playerid) <= 99999) { format(_yeniPara, sizeof _yeniPara, "$000%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 100000 && GetPlayerMoney(playerid) <= 999999) { format(_yeniPara, sizeof _yeniPara, "$00%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 1000000 && GetPlayerMoney(playerid) <= 9999999) { format(_yeniPara, sizeof _yeniPara, "$0%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
else if(GetPlayerMoney(playerid) >= 10000000 && GetPlayerMoney(playerid) <= 99999999) { format(_yeniPara, sizeof _yeniPara, "$%i", GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }}