07.12.2016, 19:48
Now i have that errors:
code:
Код:
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73606) : error 091: ambiguous constant; tag override is required (symbol "name") D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73606) : error 039: constant symbol has no size D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73607) : error 091: ambiguous constant; tag override is required (symbol "name") D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73605) : warning 204: symbol is assigned a value that is never used: "PlayerName" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
Код:
CMD:viplist(playerid, params[]) { SendCommandToAdmins(playerid,"/viplist"); new count = 0; new VipString[1500]; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(PlayerInfo[i][VipLevel] >= 1) { switch(PlayerInfo[i][VipLevel]) { case 1: { VipRank = "{5E3B00}Bronze {00FF00}Vip"; } case 2: { VipRank = "{909090}Silver {00FF00}Vip"; } case 3: { VipRank = "{FFAE00}Gold {00FF00}Vip"; } case 4: { VipRank = "{00FFFF}Premium {00FF00}Vip"; } } new file[300]; 73605>> new name[MAX_PLAYER_NAME]; 73606>> GetPlayerName(i, name, sizeof(name)); 73607>> format(file,sizeof(file),"rAdmin/Users/%s.ini",name); PlayerInfo[i][VipLevel] = dini_Int(file, "VipLevel"); format(VipString, sizeof(VipString), "%s{FF00FF}Level: {FF0000}%d {FF00FF}- {00FF00}%s (Id:{FF0000}%i{00FF00}) {FF00FF}| %s \n", VipString, PlayerInfo[i][VipLevel], PlayerName2(i),i,VipRank); ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "[!] Online VIP's", VipString, "OK", ""); count++; } } } if (count == 0) { ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "[!] Online VIP's", "No online VIP's", "OK", ""); } return 1; }