02.10.2011, 12:53
simple i dont see the problem here it is:
the error is here:
and this is the error
i just want the line the error is on fixed dont change ANYTHING else please this is the error i have now
pawn Код:
dcmd_Admins(playerid, params[])
{
new count = 0;
new string[128];
#pragma unused params
SendClientMessage(playerid, Green, " ");
SendClientMessage(playerid, Green, "___________ |- Current Online Admins -| ___________");
SendClientMessage(playerid, Green, " ");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pOnDuty[i] == 1)
{
count++
GetPlayerName(i, pOnDuty, sizeof(pOnDuty));
format(string, sizeof(string), "%s [LVL %d]\n", pOnDuty, pInfo[i][AdminLevel]);
SendClientMessage(playerid, Yellow, string);
SendClientMessage(playerid, Green, " ");
SendClientMessage(playerid, Green, "_______________________________________________");
}
}
}
if(count == 0)
{
SendClientMessage(playerid, Yellow,"No Admins online right now buddy.");
SendClientMessage(playerid, Green, " ");
SendClientMessage(playerid, Green, "_____________________________________________");
SendClientMessage(playerid, Green, " ");
}
return 1;
}
pawn Код:
GetPlayerName(i, pOnDuty, sizeof(pOnDuty));
Код:
C:\DOCUME~1\Rhys\Desktop\SA8BEC~1\FILTER~1\Account.pwn(343) : error 001: expected token: ";", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.