[POMOC]Error i warning

Započeo hood9, Mart 21, 2011, 20:49:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Svoj od 0
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[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate se logirati prvo !");
return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        if(AdminDuty[playerid] == 0)
        {
            AdminDuty[playerid] = 1;
            SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
SetPlayerColor(playerid,COLOR_NICERED);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s je na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
DutyLabel[playerid] = Create3DTextLabel("Ne ometaj!\n Na Admin duznosti ",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
    for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
        }
        else if(AdminDuty[playerid] == 1)
        {
               
            AdminDuty[playerid] = 0;
                    Delete3DTextLabel(DutyLabel[playerid]);
            SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [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\[CRO]Slavonija.pwn(27638) : warning 213: tag mismatch
C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27639) : warning 213: tag mismatch
C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27642) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27653) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

DoN

*

Mislis nako da ti bude kao u Raven's-a??
Najbolji i najpovoljniji Game i Web hosting na balkanu
Ako želiš Game ili Web host od Game Hr-a obrati mi se na PM
Trenutno radim na projektu RG:RP..
Neodgovaram na bezveze PM-ove..
Royall Gaming RolePlay

Najbolji citati
Citat: Nikola_Hawks poslato Mart 23, 2011, 19:25:24 POSLE PODNE
Skripta koju koristim:GTA RP Od 0

U komandu gdje palis duznost stavis ovo:

SetPlayerChatBubble(playerid, "Administrator na duznosti!\n{ffffff}Ne ometaj!", 0xFF000001, 100.0, 10*60*60*1000);

I u dio gdje gasis duznost:

SetPlayerChatBubble(playerid, " ", 0xFF000001,0,0);

dodje mi ovaj error i 2 warninga


C:\Users\USER\Desktop\[CRO]Slavonija.pwn(27639) : warning 213: tag mismatch
C:\Users\USER\Desktop\[CRO]Slavonija.pwn(27642) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\USER\Desktop\[CRO]Slavonija.pwn(27653) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


ae ak mi ti mos sam napravit tu komandu pa da sam zamjenim taj
C:\Users\USER\Desktop\[CRO]Slavonija.pwn(27642) : error 072: "sizeof" operator is invalid on "function" symbols
for(new i = 0; i < sizeof(CarInfo); i++)
to je taj red error
Poslednja Izmena: Mart 22, 2011, 10:09:06 PRE PODNE od hood9


Evo

27639 -  Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);


27642-  for(new i = 0; i < sizeof(CarInfo); i++)


27653 - Delete3DTextLabel(DutyLabel[playerid]);


Nadji

new DutyLabel[MAX_PLAYERS];

I zamijeni sa

new Text3D:DutyLabel[MAX_PLAYERS];

i sad mi dode ovaj error


C:\Users\USER\Desktop\[CRO]Slavonija.pwn(27642) : error 072: "sizeof" operator is invalid on "function" symbols
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



a taj red 27642 je ovo

for(new i = 0; i < sizeof(CarInfo); i++)

ovo:

if(PlayerInfo[playerid][pAdmin] >= 1337)
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}


Zamijeni sa ovim:

if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerInAnyVehicle(playerid)
{
new bas = GetPlayerVehicleID(playerid);
SetVehicleParamsForPlayer(bas,playerid,0,0);
}
}