Započeo mikec_shot
•10. Okt. 2012.• ZaključanoErrori [foreach]
522
pregleda
2
postova
10. Okt. 2012.
Skripta koju koristim: gtarp
Detaljan opis problema: Kada compileujem izbacuje sledece, iako imam include foreach..:
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Detaljan opis problema: Kada compileujem izbacuje sledece, iako imam include foreach..:
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : error 017: undefined symbol "foreach"
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : error 029: invalid expression, assumed zero
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : error 017: undefined symbol "i"
C:\Users\Pavlov\Downloads\BE\gamemodes\gtarp.pwn(5791) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.Dio skripte:
public SearchingHit(playerid)
{
new string;
new giveplayer;
new searchhit = 0;
foreach (new i : Player)
{
if(searchhit == 0)
{
if(PI > 0 && GotHit == 0 && PI != 8)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
searchhit = 1;
hitfound = 1;
hitid = i;
foreach (Player, k)
{
if(PI == 8 || PI == 8)
{
SendClientMessage(k, BELA, "|______________________ Novosti Hitman Agencije _______________________|");
SendClientMessage(k, COLOR_DBLUE, "*** Nova poruka: Nova meta je dostupna. ***");
format(string, sizeof(string), "Osoba: %s ID: %d Vrednost: $%d", giveplayer, i, PI);
SendClientMessage(k, COLOR_DBLUE, string);
SendClientMessage(k, COLOR_YELLOWW, "Koristite givehit id, da biste dodelili metu jednome od vasih hitmana.");
SendClientMessage(k, BELA, "|______________________________________________________________________|");
}
}
return 0;
}
}
}
if(searchhit == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nema dostupnih meta !");
}
return 0;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):

10. Okt. 2012.
Uspeo, hvala. E sad imam problem sa lisicama nesto.
C:\Users\Pavlov\Downloads\OS\srv245860\gamemodes\BESP.pwn(72594) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
C:\Users\Pavlov\Downloads\OS\srv245860\gamemodes\BESP.pwn(78853) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
Evo ih te dve linije:
72594:
78853:
C:\Users\Pavlov\Downloads\OS\srv245860\gamemodes\BESP.pwn(72594) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
C:\Users\Pavlov\Downloads\OS\srv245860\gamemodes\BESP.pwn(78853) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
Evo ih te dve linije:
72594:
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);78853:
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
