04.12.2012, 15:15
(
Последний раз редактировалось zionx08; 04.12.2012 в 15:18.
Причина: Add info
)
Its tell that the problem is in the line 2408 which is
and the line 2417 is the line 2418 that you asked me to change
that
is actually
because that admin info i already set at line 2390
This is the new one which you asked me to arrange
and there is still an erro
pawn Код:
}
else //Line 2408 //the full new arranged commands can get at down.The problem start from helper
{
SendClientMessage(playerid, COLOR_GREY, "{4985d7}[Helper Team] {a7c2e6}- Helpers:");
for(i = 0; i < MAX_PLAYERS; i++)
that
Код:
new adminfo[64];
Код:
new helperinfo[64]
This is the new one which you asked me to arrange
pawn Код:
CMD:team(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "{4985d7}[Admin Team] {a7c2e6}- Administrators:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 6)
{
new adminfo[64], sendername[MAX_PLAYER_NAME], string[128];
if(PlayerInfo[i][pAdmin] == 5) { adminfo = "Owner"; }
else if(PlayerInfo[i][pAdmin] == 4) { adminfo = "Head Of Admin"; }
else if(PlayerInfo[i][pAdmin] == 3) { adminfo = "Lead Admin"; }
else if(PlayerInfo[i][pAdmin] == 2) { adminfo = "Basic Admin"; }
else if(PlayerInfo[i][pAdmin] == 1) { adminfo = "Trial Admin"; }
else { adminfo = "Admin"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, 128, "{e1e3e6} - %s %s", adminfo, sendername);
SendClientMessage(playerid, random(0xFFFFFFFF), string);
}
else
{
format(string, 128, "{7bd25c} - %s %s [ADMIN DUTY]", adminfo, sendername);
SendClientMessage(playerid, 0xFAAFBEFF, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "{4985d7}[Helper Team] {a7c2e6}- Helpers:");
for(i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pHelper] >= 1 && PlayerInfo[i][pHelper] <= 2)
{
new helperinfo[64];
if(PlayerInfo[i][pHelper] == 1) { helperinfo = "Helper"; }
else { helperinfo = "Helper"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 0)
{
format(string, 128, "{e1e3e6} - %s %s", helperinfo, sendername);
SendClientMessage(playerid, random(0xFFFFFFFF), string);
}
else
{
format(string, 128, "{7bd25c} - %s %s [HELPER DUTY]", helperinfo, sendername);
SendClientMessage(playerid, 0xFAAFBEFF, string);
}
}
}
}
}
}
}
}
}
return 1;
}
Код:
C:\Users\Admin\Documents\Server\The Andreas\gamemodes\TheAndreasife.pwn(2408) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.