11.06.2014, 21:30
@hello all I got already posted a topic about this problem but I got a new problem, after giving that solution a shoot I got a now the problem is look at the code down
after the name nothing shows no infomations . so please help thanks in advance!
pawn Код:
CMD:vips(playerid, params[]){
new Count, n[MAX_PLAYER_NAME], string[128], VipRank[40];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][Vip] > 0 && IsPlayerConnected(i))
{
switch(PlayerInfo[i][Vip])
{
case 1:
{
VipRank = "Level 1 VIP ($10 USD)";
}
case 2:
{
VipRank = "Level 2 VIP ($15 USD)";
}
}
GetPlayerName(i, n, sizeof(n));
format(string, 128, "%s{FFFFFF}* %s (Id:%i) = %s \n", string, n, i, VipRank);
Count++;
}
}
if(Count == 0)
{
ShowPlayerDialog(playerid, 121,DIALOG_STYLE_MSGBOX, "{FF0000}SFTDM - Online Vips", "Currently, there is no vips online", "OK", "");
}
else
{
format(string, 128, "{FF0000}Online Very Important Players\n{FFFFFF}%s", string);
ShowPlayerDialog(playerid, 12,DIALOG_STYLE_MSGBOX, "{FF0000}SFTDM - Online Vips", string, "OK", "");
}
return 1;}