05.05.2013, 16:41
Uhm too much errors
Error line
Код:
CMD:admins(playerid,params[]) { #pragma unused params new string[150],count = 0,AdminPos[30]; for(new i = 0;i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdminLevel] >= 1) { if(PlayerInfo[i][pAdminLevel] == 1) AdminPos=""cyellow"Moderator"; else if(PlayerInfo[i][pAdminLevel] == 2) AdminPos=""cyellow"Administrator"; else if(PlayerInfo[i][pAdminLevel] == 3) AdminPos=""cgreen"Head Administrator"; else if(PlayerInfo[i][pAdminLevel] == 4) AdminPos=""cred"Owner"; format(string,sizeof(string),"%s"cgreen2"%s(ID:%d) "cyellow2"- "cblue"%s \n",string,GetPName(i),i,AdminPos); ShowPlayerDialog(playerid,Adminsdialog,0,""cwhite"Admins Online",string,"OK",""); count++; } } else if(count == 0) { ShowPlayerDialog(playerid,Adminsdialog,0,"Admins Online",""cred"No Admins Online!","OK",""); } } return 1; }
Код:
D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1170) : error 001: expected token: "-string end-", but found "-identifier-" D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1170) : error 017: undefined symbol "cyellow" D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1170) : warning 215: expression has no effect D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1171) : error 029: invalid expression, assumed zero D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1171) : warning 215: expression has no effect D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1171) : error 001: expected token: ";", but found "if" D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1171) : error 001: expected token: "-string end-", but found "-identifier-" D:\Scripting\SAMP 0.3x server\gamemodes\Lvtdm.pwn(1171) : fatal error 107: too many error messages on one line
Error line
Код:
if(PlayerInfo[i][pAdminLevel] == 1) AdminPos=""cyellow"Moderator";