Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: dll poslato Mart 10, 2017, 17:54:02 POSLE PODNE

Naslov: [POMOC]Cannot read from file : "foreach"
Poruka od: dll poslato Mart 10, 2017, 17:54:02 POSLE PODNE
Skripta koju koristim:Moja
Detaljan opis problema:Vako radio sam sistem organizacija  :-\ I ovaj error me zeza
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):EVO DOLE KODOVI STA SAM RADIO :

1.Dodao sam foreach i jos neke Zcmd i jos na pocetak skripte te ovako je izgledalo :
                                                                       [pawn]#include < a_samp >
#include < a_objects >
#include < streamer >
#include < sscanf2 >
#include < YSI\y_ini >
#include < YSI\y_iterate >
#include < YSI\y_timers >
#include < zcmd >
#include < newsamp >
#include < mapandreas >
#include < mSelection >
#include < eSelection >
#include < GetVehicleColor >
#include  <dini>
#include  <foreach>[/pawn]
DODAO SAM FOREACH JER JE TREBAO BITI :
OSTALO POCETAK PRAVLJENJA
[pawn]CMD:makelider(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Plava,"Niste ovlasteni!");
new ID,level;
if(sscanf(params, "dd", ID, level)) return SendClientMessage(playerid, Plava, "Koristenje: /makelider [ID] [broj org]");
new file[128];
format(file,sizeof(file),"GdjeVamSeSpremaAcc/%s.ini", ImeIgraca(ID));
dini_IntSet(file,"Lider",level);
SetPVarInt(ID,"Lider",level);
return true;
}[/pawn]
TE JOS :
[pawn]CMD:pozovi(playerid, params[])
{
if(GetPVarInt(playerid,"Lider") < 1) return SendClientMessage(playerid,Plava,"Niste ovlasteni!");
new ID,level;
if(sscanf(params, "dd", ID, level)) return SendClientMessage(playerid, Plava, "Koristenje: /pozovi [ID] [broj org]");
if(level != GetPVarInt(playerid,"Lider")) return SendClientMessage(playerid,Plava,"Ne mozete pozvati igraca u drugu org/mafiju.");
new file[128];
format(file,sizeof(file),"GdjeVamSeSpremaAcc/%s.ini", ImeIgraca(ID));
dini_IntSet(file,"Clan",level);
SetPVarInt(ID,"Clan",level);
return true;
}[/pawn]
[pawn]CMD:izbaci(playerid, params[])
{
if(GetPVarInt(playerid,"Lider") >= 1)
{
new ID;
if(sscanf(params, "d", ID)) return SendClientMessage(playerid, Plava, "Koristenje: /izbaci [ID] ");
if(GetPVarInt(ID,"Clan") != GetPVarInt(playerid,"Lider")) return SendClientMessage(playerid,Plava,"Ne mozete izbaciti igraca iz druge org/mafije.");
new file[128];
format(file,sizeof(file),"GdjeVamSeSpremaAcc/%s.ini", ImeIgraca(ID));
dini_IntSet(file,"Clan",0);
SetPVarInt(ID,"Clan",0);
}
return true;
}[/pawn]
[pawn]CMD:chat(playerid,params[])
{
new tekst [MAX_STRING];
if (sscanf(params, "s[90]", tekst)) SendClientMessage(playerid,Plava,  "Koristenje: /chat [text]");
else{
if( GetPVarInt(playerid,"Lider") == 1) {
new string[89]; format(string, sizeof(string), " Lider OrgJedan %s kaze: %s", ImeIgraca(playerid), params[0] );
return PorukaOrgJedan(Plava,string);
}
else
{
if( GetPVarInt(playerid,"Clan") == 1 ) {
new string[89]; format(string, sizeof(string), " Clan OrgJedan %s kaze: %s", ImeIgraca(playerid), params[0] );
return PorukaOrgJedan(Plava,string);
}
else  return SendClientMessage(playerid,Plava,"Niste clan OrgJedan!");
}
}
return true;
}[/pawn]
[pawn]forward PorukaOrgJedan(Boja, const string[]);
public PorukaOrgJedan(Boja, const string[])
{
foreach(Player, i)
{
if (GetPVarInt(i,"Lider") == 1 || GetPVarInt(i,"Clan") == 1) SendClientMessage(i, Boja, string);
}
return true;
}
[/pawn]
Ako neko moze da pomogne !!
[pawn]if(GetPVarInt(playerid,"Lider") == 1 || GetPVarInt(playerid,"Clan") )
{
SetPlayerPos(playerid, 123.2133,12312.2131,1231);
SetPlayerInterior(playerid, 0);
}[/pawn]
POMOC BRZO ILI NEKO U ODG ISPRAVNE KODOVE !!
Naslov: Odg: [POMOC]Cannot read from file : "foreach"
Poruka od: Tosic ツ poslato Mart 10, 2017, 17:57:55 POSLE PODNE
Ako ti je izbacilo taj error znaci da nije greska u kodu nego da ne ocita tu include. Ubaci tu include u pawno/include i otvori sa tim pawnom mod i onda compile. Koji ti je izvorni?
Naslov: Odg: [POMOC]Cannot read from file : "foreach"
Poruka od: // xunder poslato Mart 10, 2017, 18:46:46 POSLE PODNE
y_iterate = novi foreach
Naslov: Odg: [POMOC]Cannot read from file : "foreach"
Poruka od: dll poslato Mart 10, 2017, 19:07:51 POSLE PODNE
Tosic , nema izvornog od 0 je .. 5k linija je tek .. -.-