23.03.2018, 09:15
Hello guyz i am setting colors to my menu. So the problem is i want thext " | Vip: "- be white and "%s" - bee as they are Bronze, Silver, Gold but in this IMG you can see i have some problems. Can you help me?
https://i.imgur.com/dWPbb3U.jpg
stock ShowMainMenu(playerid)
{
new st[60];
new viptext[20];
switch(GetPVarInt(playerid, "VipLevel"))
{
case 0: viptext = "None";
case 1: viptext = "{cd7f32}Bronze";
case 2: viptext = "{c0c0c0}Silver";
case 3: viptext = "{ffd700}Gold";
}
format(st, sizeof(st), RGB_WHITE"Level:"RGB_SERVER" %d"RGB_WHITE" | Exp: "RGB_SERVER"%d"RGB_WHITE" | Vip:"" %s", GetPVarInt(playerid, "Level"), GetPVarInt(playerid, "Respect"), viptext);
return ShowPlayerDialog(playerid, 195, DIALOG_STYLE_LIST, st, "1) Statistica\n2) Options\n3) Usafrtxoeba\n4) Administracia\n5) Daxmareba\n6) Name change\n7) Forum-ze registracia\n
Migwevebi\n9) Davalebebi\n10) Donate", "Next","Cancel");
}
https://i.imgur.com/dWPbb3U.jpg
stock ShowMainMenu(playerid)
{
new st[60];
new viptext[20];
switch(GetPVarInt(playerid, "VipLevel"))
{
case 0: viptext = "None";
case 1: viptext = "{cd7f32}Bronze";
case 2: viptext = "{c0c0c0}Silver";
case 3: viptext = "{ffd700}Gold";
}
format(st, sizeof(st), RGB_WHITE"Level:"RGB_SERVER" %d"RGB_WHITE" | Exp: "RGB_SERVER"%d"RGB_WHITE" | Vip:"" %s", GetPVarInt(playerid, "Level"), GetPVarInt(playerid, "Respect"), viptext);
return ShowPlayerDialog(playerid, 195, DIALOG_STYLE_LIST, st, "1) Statistica\n2) Options\n3) Usafrtxoeba\n4) Administracia\n5) Daxmareba\n6) Name change\n7) Forum-ze registracia\n

}