07.12.2016, 18:43
Hello, after i added vip system i got 4 errors in vips command
Errors:
Command:
Errors:
Код:
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : error 017: undefined symbol "PlayerName" D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : error 017: undefined symbol "PlayerName" D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : error 029: invalid expression, assumed zero D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
CMD:vips(playerid, params[])
{
MessageToAdmins(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];
>>Line 73602>> GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
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;
}


