Započeo johny_
•8. Mar. 2020.• Zaključano116 Errora. Pomagajte
1,631
pregleda
11
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
95 / 100 XP
Početnik(0)
30
Postovi:
8
Teme:
Pridružio se:Feb. 2020
8. Mar. 2020.
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:
Ima jos linija ali mislim da je ovo dovoljno. Errori su na onoj prvoj, CMD:newbie.... Pomazite 🙄
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 🙄
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
95 / 100 XP
Početnik(0)
30
Postovi:
8
Teme:
Pridružio se:Feb. 2020
8. Mar. 2020.
YumikoJR wrote on March 8, 2020, 9:17 pm:
koristi smartcmd koliko vidim.. ide cmdid itd..
daj samo liniju gde baca error/warning...
daj samo liniju gde baca error/warning...
Baca onu prvu liniju, probacu sutra da probam onako, hvala vamm
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,514
Postovi:
58
Teme:
Pridružio se:Nov. 2016
9. Mar. 2020.
#luyn wrote on March 9, 2020, 1:24 pm:
cmd:newbie
baca ti error jer koristis new
stavi
cmd:n
baca ti error jer koristis new
stavi
cmd:n
Msm da ne bi trebalo da je to toga
Legenda Foruma
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
839
Postovi:
32
Teme:
Pridružio se:Sep. 2014
10. Mar. 2020.
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?
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?
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
95 / 100 XP
Početnik(0)
30
Postovi:
8
Teme:
Pridružio se:Feb. 2020
10. Mar. 2020.
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?
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
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
95 / 100 XP
Početnik(0)
30
Postovi:
8
Teme:
Pridružio se:Feb. 2020
10. Mar. 2020.
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
