30.12.2011, 16:00
Hey all i have problem with /aduty command
i wanted do add it in LuxAdmin but i got that mutch eroors:
i wanted do add it in LuxAdmin but i got that mutch eroors:
Код:
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3047) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3049) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3051) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3054) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3056) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3058) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3064) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3066) : error 010: invalid function or declaration C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3068) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors.
pawn Код:
if(!strcmp(cmdtext, "/adminduty", true) || !strcmp(cmdtext, "/aduty", true)) //
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(PlayerInfo[playerid][pAdminDuty] == 0)
{
PlayerInfo[playerid][pAdminDuty] = 1;
SetPlayerColor(playerid,0xFF66FF00);
format(string, sizeof(string),"[ADMIN]: %s is now on Admin Duty", sendername);
ABroadCast(COLOR_LIGHTRED, string, 1);
DutyLabel[playerid] = Create3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
if(PlayerInfo[playerid][pAdmin] >= 5)
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}