28.06.2017, 16:36
here is the line
0
help please!!
0
Код:
if(PlayerInfo[i][pVipLevel] > 0
if(PlayerInfo[i][pVipLevel] > 0
CMD:vips(playerid, params[]) { new vipstring[2000],count=0; if(IsPlayerConnected(playerid)) { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[playerid][pVipLevel] > 0) { format(vipstring, sizeof(vipstring),"{ffffff}%s%s (ID:%d)\n", vipstring, PlayerName(i), playerid); count++; } } } ShowPlayerDialog(playerid,DIALOG_VIPS,DIALOG_STYLE_MSGBOX,"{B266FF}Online VIPs:",vipstring,"Close",""); } if (count == 0) return SendClientMessage(playerid,-1,""chat" There are no VIP's online."); return 1; }
CMD:vips(playerid, params[])
{
new vipstring[256], count=0;
if(IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pVipLevel] > 0)
{
format(vipstring, sizeof(vipstring),"{ffffff}%s%s (ID:%d)\n", vipstring, PlayerName(i), playerid);
ShowPlayerDialog(playerid,DIALOG_VIPS,DIALOG_STYLE_MSGBOX,"{B266FF}Online VIPs:",vipstring,"Close","");
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid,-1,"There are no VIP's online.");
}
}
return 1;
}