Detaljan opis problema:Zelio bi kad je admin/gs na duznosti da se za njega "zakaci" 3D tex di bi pisalo NA GS Duznosti (ne ometaj) tako i za Admine ,gledao sam neku prijasnju temu za to ali nis nisam skuzio pa ako neko to moze ubacit u ovu skriptu
Dio skripte:
if(!strcmp(cmdtext, "/adminduty", true))
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Morate se logirati prvo !");
return 1;
}
if(PlayerInfo > 0)
{
if(AdminDuty == 0)
{
AdminDuty = 1;
SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
SetPlayerColor(playerid,COLOR_NICERED);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " [ID:%d]%s je na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
DutyLabel = Create3DTextLabel("Ne ometaj!\n Na Admin duznosti ",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel, playerid, 0,0,0);
if(PlayerInfo >= 1337)
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
}
else if(AdminDuty == 1)
{
AdminDuty = 0;
Delete3DTextLabel(DutyLabel);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " [ID:%d]%s vise nije na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vi niste autorizovani da bi ste Koristiteli ovu komandu !");
return 1;
}
}
return 1;
}i onda mi dodje ovaj error i warning 3
C:\Users\USER\Desktop\SAMP Server\gamemodes\Slavonija.pwn(27638) : warning 213: tag mismatch
C:\Users\USER\Desktop\SAMP Server\gamemodes\Slavonija.pwn(27639) : warning 213: tag mismatch
C:\Users\USER\Desktop\SAMP Server\gamemodes\Slavonija.pwn(27642) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\USER\Desktop\SAMP Server\gamemodes\Slavonija.pwn(27653) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.