116 Errora. Pomagajte

johny_ Započeo johny_
pre 5 godina
1,552
pregleda
11
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
johny_
Wheel Man
pre 5 godina
Problem(error/warning):

error 029: invalid expression, assumed zero
warning 221: label name "__smartcmd_CCCM" shadows tag name
error 017: undefined symbol "tag@Newbie"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Dio skripte:
CMD:newbie(cmdid, playerid, params[])
{
new newbie;
new text;
    if(UlogovanProvera == 0) return ERROR(playerid, "Morate biti ulogovani da bi koristili komande!");
if(ServerInfo == 0) return ERROR(playerid, "Ovaj chat trenutno iskljucen, pokusajte kasnije!");
if(gettime() < AntiNewbieSpam) return ERROR(playerid, "Ovaj cet mozete da koristite svakih 10s!");
if(sscanf(params,"s",text)) return USAGE(playerid,"/newbie ");


Ima jos linija ali mislim da je ovo dovoljno. Errori su na onoj prvoj, CMD:newbie.... Pomazite  🙄
Garadooo
Forum Don
pre 5 godina
CMD:newbie(playerid,params[])
ᗪ乇Ҝ丂卂
Underboss
pre 5 godina
Galardo wrote on March 8, 2020, 8:18 pm:
CMD:newbie(playerid,params[])

koristi smartcmd koliko vidim.. ide cmdid itd..

daj samo liniju gde baca error/warning...
johny_
Wheel Man
pre 5 godina
YumikoJR wrote on March 8, 2020, 9:17 pm:
koristi smartcmd koliko vidim.. ide cmdid itd..

daj samo liniju gde baca error/warning...


Baca onu prvu liniju, probacu sutra da probam onako, hvala vamm
#luyn
Hustler
pre 5 godina
cmd:newbie

baca ti error jer koristis new
stavi
cmd:n
Exnas.pwn
Godfather
pre 5 godina
#luyn wrote on March 9, 2020, 1:24 pm:
cmd:newbie

baca ti error jer koristis new
stavi
cmd:n

Msm da ne bi trebalo da je to toga
SyS
Wheel Man
pre 5 godina
#luyn wrote on March 9, 2020, 1:24 pm:
cmd:newbie

baca ti error jer koristis new
stavi
cmd:n

Tom logikom ni CMD:do ne bi trebalo da radi 😉
ᗪ乇Ҝ丂卂
Underboss
pre 5 godina
daj mi any da ti fixam..
Vodka Play
Crime Lord
pre 5 godina
221 label name identifier shadows tag name
A code label (for the goto instruction) has the same name as a
previously defined tag. This may indicate a faultily applied tag
override; a typical case is an attempt to apply a tag override on the
variable on the left of the = operator in an assignment statement

Da nemaš slučajno komandu pod istim tim imenom?
johny_
Wheel Man
pre 5 godina
Vodka Play wrote on March 10, 2020, 8:13 pm:
221 label name identifier shadows tag name
A code label (for the goto instruction) has the same name as a
previously defined tag. This may indicate a faultily applied tag
override; a typical case is an attempt to apply a tag override on the
variable on the left of the = operator in an assignment statement

Da nemaš slučajno komandu pod istim tim imenom?


Nemam ali sam opet probao sa CMD:n. Kao i CMD:newbie(playerid,params[]) ali opet baca errore, ne znam do cega je. Nemam any desk, jedino ovako. U svakom slucaju hvala
johny_
Wheel Man
pre 5 godina
CMD:ha(cmdid, playerid, params[])
{
if(UlogovanProvera == 0) return ERROR(playerid, "Morate biti ulogovani da bi koristili komande!");
if(PlayerInfo >= 1 || PlayerInfo >= 1)
{
new text, string;
if(sscanf(params, "s", text)) return USAGE(playerid, "/ha ");
if(strlen(text) < 1 || strlen(text) > 100) return ERROR(playerid, "Tekst ne moze imati ispod 1 i iznad 100 znakova!");
if(PlayerInfo == 6)
{
  format(string,sizeof(string), ""PLAVA" HA "BELA"| ES Vlasnik "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 5)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| ES Direktor "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 4)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| ES Glavni Admin "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 3)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| ES Admin "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 2)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| ES Admin "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 1)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| ES Admin "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 3)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| Vodja Helpera "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 2)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| Helper "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else if(PlayerInfo == 1)
{
format(string,sizeof(string), ""PLAVA" HA "BELA"| Helper "PLAVA" %s: "BELA" %s", GetName(playerid), text);
AGPoruka(-1, string); s_log(LOG_AGKOMANDE, string);
}
else return ERROR(playerid, "Nemate dozvolu da koristite ovu komandu!");
return 1;
}
////////////////////////////////////////////////////////
CMD:newbie(cmdid, playerid, params[])
{
new newbie;
new text;
    if(UlogovanProvera == 0) return ERROR(playerid, "Morate biti ulogovani da bi koristili komande!");
if(ServerInfo == 0) return ERROR(playerid, "Ovaj chat trenutno iskljucen, pokusajte kasnije!");
if(gettime() < AntiNewbieSpam) return ERROR(playerid, "Ovaj cet mozete da koristite svakih 10s!");
if(sscanf(params,"s",text)) return USAGE(playerid,"/newbie ");
if(PlayerInfo == 6)
{
  format(newbie,sizeof(newbie), "{029BB3}*** ES Vlasnik [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else if(PlayerInfo == 5)
{
format(newbie,sizeof(newbie), "{029BB3}*** ES Direktor [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else if(PlayerInfo == 4)
{
format(newbie,sizeof(newbie), "{029BB3}*** ES Glavni Admin [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else if(PlayerInfo == 3)
{
format(newbie,sizeof(newbie), "{029BB3}*** ES Admin [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else if(PlayerInfo == 2)
{
format(newbie,sizeof(newbie), "{029BB3}*** ES Admin [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else if(PlayerInfo == 1)
{
format(newbie,sizeof(newbie), "{029BB3}*** ES Admin [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else if(PlayerInfo > 0)
{
format(newbie,sizeof(newbie), "{029BB3}*** ES Helper [%d]%s: %s ***", playerid, GetName(playerid), text);
NEWBIEMessages(-1, newbie);
}
else
{
if(PlayerInfo >= 3) return ERROR(playerid, "Ovaj chat mozete da koristite samo do levela 3!");
format(newbie,sizeof(newbie),"{029BB3}*** [%d]%s: %s ***", playerid, GetName(playerid) ,text);
NEWBIEMessages(-1, newbie);
}
AntiNewbieSpam = gettime() + 10;
return 1;
}


Kad sam radio tu komandu, pravio sam i CMD ha (za helpere i admine). Da nije greska tu? Inace tek sam poceto sa skriptanjem i nije mi bas sve jasno, cesto mi se desavaju i sitne greske..

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava