20.03.2017, 15:19
LuxAdmin.pwn(5621) : warning 217: loose indentation
PHP код:
#pragma unused params
new Count, i;
new string[128];
new adminname[MAX_PLAYER_NAME];
SendClientMessage(playerid, green, " ");
SendClientMessage(playerid, green, "_________ |- Online Vip Member -| _________");
SendClientMessage(playerid, green, " ");
for(i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i) && AccInfo[i][pVip] > 0)
Count++;
for(i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i) && AccInfo[i][pVip] > 0)
{
if(AccInfo[i][pVip] > 0)
{
switch(AccInfo[i][pVip])
{
case 1: AccType = "Silver";
case 2: AccType = "Gold";
case 3: AccType = "Premium";
}
}
GetPlayerName(i, adminname, sizeof(adminname));
{
format(string, sizeof(string), "%s (Id:%i) | %s",PlayerName2(i),i,AccType);
SendClientMessage(playerid,yellow,string);
}
}
if(Count == 0)
return SendClientMessage(playerid,red, "No players have VIP Account!");
SendClientMessage(playerid, green, " _______________________________________");
return 1;
}