Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-09-19, 21:23


knifeman

Jot






Wiek: 31
Na forum: 5082 dni
Posty: 69
Nick w MP: Patrico_Ramirez



Respekt: 50

Witam nie mog? znale?? tego miejsca gdzie brakuje klamry zamykaj?cej prosze o pomoc.

error 030: compound statement not closed at the end of file (started at line 47268)

Kod:

new veh=GetPlayerVehicleID(playerid);
if(SamochodInfo[veh][sBlokada])
{
GuiInfo(playerid,"Ten pojazd ma blokad? na kole!");
return 1;
}
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
TextDrawHideForPlayer(playerid,silnik);
Unfreeze(playerid,0);
SetTimerEx("SilnikOff",1000,false,"d",veh);
return 1;
}
else
{
if(SamochodInfo[veh][sPaliwo]<1)
{
GuiInfo(playerid,"Ten pojazd nie ma paliwa!");
return 1;
}
if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))
{
if(strcmp(SamochodInfo[veh][sRanga],"brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pRanga])&&PlayerInfo[playerid][pLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==2&&PlayerInfo[playerid][pPraca]==SamochodInfo[veh][sTypID])
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(ToWlascicielAuto(playerid,veh))
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==4&&PlayerInfo[playerid][pBiznes]==SamochodInfo[veh][sTypID])
{
if(strcmp(SamochodInfo[veh][sRanga]," brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pBiznesRanga])&&PlayerInfo[playerid][pBiznesLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
else
{
GuiInfo(playerid,"Nie jeste? upowa?niony do uruchomienia silnika!");
}
CancelSelectTextDraw(playerid);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 21:28


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

knifeman, Sprawd? tak :
Pawn
new veh=GetPlayerVehicleID(playerid);
if(SamochodInfo[veh][sBlokada])
{
GuiInfo(playerid,"Ten pojazd ma blokad? na kole!");
return 1;
}
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
TextDrawHideForPlayer(playerid,silnik);
Unfreeze(playerid,0);
SetTimerEx("SilnikOff",1000,false,"d",veh);
return 1;
}
else
{
if(SamochodInfo[veh][sPaliwo]<1)
{
GuiInfo(playerid,"Ten pojazd nie ma paliwa!");
}
return 1;
}
if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))
{
if(strcmp(SamochodInfo[veh][sRanga],"brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pRanga])&&PlayerInfo[playerid][pLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==2&&PlayerInfo[playerid][pPraca]==SamochodInfo[veh][sTypID])
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(ToWlascicielAuto(playerid,veh))
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==4&&PlayerInfo[playerid][pBiznes]==SamochodInfo[veh][sTypID])
{
if(strcmp(SamochodInfo[veh][sRanga]," brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pBiznesRanga])&&PlayerInfo[playerid][pBiznesLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
else
{
GuiInfo(playerid,"Nie jeste? upowa?niony do uruchomienia silnika!");
}
CancelSelectTextDraw(playerid);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 21:31


knifeman

Jot






Wiek: 31
Na forum: 5082 dni
Posty: 69
Nick w MP: Patrico_Ramirez



Respekt: 50

Po twoim kodzie pawn szaleje i przestaje dzia?a? niby co? przerabia ale .amx, kt?re przerabia ma 0kb jakie? dalsze pomys?y ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 21:37


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

knifeman, Daj wszystko co zwi?zane jest z tym kodem, mo?e b??d le?y gdzie? wy?ej/ni?ej :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 21:46


knifeman

Jot






Wiek: 31
Na forum: 5082 dni
Posty: 69
Nick w MP: Patrico_Ramirez



Respekt: 50

W?tpi?, ?e b??d ten jest zwi?zany z reszt? kodu. Error ?mia?o wskazuje ca?y kod, kt?ry poda?em wy?ej.

(47335) : error 030: compound statement not closed at the end of file (started at line 47267)

Kod:

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
new PlayerText:gPlayerTextDrawS[MAX_PLAYERS];

if(playertextid == gPlayerTextDrawS[playerid])
{
new veh=GetPlayerVehicleID(playerid);
if(SamochodInfo[veh][sBlokada])
{
GuiInfo(playerid,"Ten pojazd ma blokad? na kole!");
return 1;
}
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
TextDrawHideForPlayer(playerid,silnik);
Unfreeze(playerid,0);
SetTimerEx("SilnikOff",1000,false,"d",veh);
return 1;
}
else
{
if(SamochodInfo[veh][sPaliwo]<1)
{
GuiInfo(playerid,"Ten pojazd nie ma paliwa!");
return 1;
}
if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))
{
if(strcmp(SamochodInfo[veh][sRanga],"brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pRanga])&&PlayerInfo[playerid][pLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==2&&PlayerInfo[playerid][pPraca]==SamochodInfo[veh][sTypID])
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(ToWlascicielAuto(playerid,veh))
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==4&&PlayerInfo[playerid][pBiznes]==SamochodInfo[veh][sTypID])
{
if(strcmp(SamochodInfo[veh][sRanga]," brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pBiznesRanga])&&PlayerInfo[playerid][pBiznesLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
else
{
GuiInfo(playerid,"Nie jeste? upowa?niony do uruchomienia silnika!");
}
CancelSelectTextDraw(playerid);
return 1;
}
Ale prosze to ca?y kod

Edit* Pawno szala? poniewa? ja g?upi podmieni?em tw?j skrawek kodu z moim ca?ym kodem ;) Lecz po ponownym tym razem dobrym podmienieniu kod?w wyst?pi? ten san error.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 22:27


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

knifeman, Zamie? tw?j kod na taki:
Pawn
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
new PlayerText:gPlayerTextDrawS[MAX_PLAYERS];
if(playertextid == gPlayerTextDrawS[playerid])
{
new veh=GetPlayerVehicleID(playerid);
if(SamochodInfo[veh][sBlokada])
{
GuiInfo(playerid,"Ten pojazd ma blokad? na kole!");
}
return 1;
}
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
TextDrawHideForPlayer(playerid,silnik);
Unfreeze(playerid,0);
SetTimerEx("SilnikOff",1000,false,"d",veh);
return 1;
}
else
{
if(SamochodInfo[veh][sPaliwo]<1)
{
GuiInfo(playerid,"Ten pojazd nie ma paliwa!");
}
return 1;
}
if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))
{
if(strcmp(SamochodInfo[veh][sRanga],"brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pRanga])&&PlayerInfo[playerid][pLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==2&&PlayerInfo[playerid][pPraca]==SamochodInfo[veh][sTypID])
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(ToWlascicielAuto(playerid,veh))
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==4&&PlayerInfo[playerid][pBiznes]==SamochodInfo[veh][sTypID])
{
if(strcmp(SamochodInfo[veh][sRanga]," brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pBiznesRanga])&&PlayerInfo[playerid][pBiznesLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
else
{
GuiInfo(playerid,"Nie jeste? upowa?niony do uruchomienia silnika!");
}
CancelSelectTextDraw(playerid);
return 1;
}


Jak dalej nie dzia?a, to pisz :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 22:35


knifeman

Jot






Wiek: 31
Na forum: 5082 dni
Posty: 69
Nick w MP: Patrico_Ramirez



Respekt: 50

Dzia?a a wiesz mo?e jaki to b?dzie new ?

(47311) : error 017: undefined symbol "veh"

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 22:38


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

knifeman, Zamie? na takie, i zobacz czy dalej b?d? jakie? problemy :)
Pawn
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
new PlayerText:gPlayerTextDrawS[MAX_PLAYERS];
new veh=GetPlayerVehicleID(playerid);
if(playertextid == gPlayerTextDrawS[playerid])
{
if(SamochodInfo[veh][sBlokada])
{
GuiInfo(playerid,"Ten pojazd ma blokad? na kole!");
}
return 1;
}
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
TextDrawHideForPlayer(playerid,silnik);
Unfreeze(playerid,0);
SetTimerEx("SilnikOff",1000,false,"d",veh);
return 1;
}
else
{
if(SamochodInfo[veh][sPaliwo]<1)
{
GuiInfo(playerid,"Ten pojazd nie ma paliwa!");
}
return 1;
}
if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))
{
if(strcmp(SamochodInfo[veh][sRanga],"brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pRanga])&&PlayerInfo[playerid][pLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==2&&PlayerInfo[playerid][pPraca]==SamochodInfo[veh][sTypID])
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(ToWlascicielAuto(playerid,veh))
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==4&&PlayerInfo[playerid][pBiznes]==SamochodInfo[veh][sTypID])
{
if(strcmp(SamochodInfo[veh][sRanga]," brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pBiznesRanga])&&PlayerInfo[playerid][pBiznesLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
else
{
GuiInfo(playerid,"Nie jeste? upowa?niony do uruchomienia silnika!");
}
CancelSelectTextDraw(playerid);
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 22:44


knifeman

Jot






Wiek: 31
Na forum: 5082 dni
Posty: 69
Nick w MP: Patrico_Ramirez



Respekt: 50

Dzi?kuj? ! Errory rozwi?zane lecz ju? widz? ?e na jego miejsce wszed? jaki? jeden niezrozumia?y dla mnie warning je?eli umiesz go naprawi? by?bym bardzo wdzi?cznym warning to :

warning 225: unreachable code


kod:

if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))


wiem ?e ten kod si? nigdy nie wykona lecz jest konieczny poniewa? po usuni?ciu go wywala? wcze?niejszy b??d zatem jak pozby? si? tego warninga ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 22:48


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

knifeman, Zamie? kod na ten:
Kod:

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
new PlayerText:gPlayerTextDrawS[MAX_PLAYERS];
new veh=GetPlayerVehicleID(playerid);
if(playertextid == gPlayerTextDrawS[playerid])
{
if(SamochodInfo[veh][sBlokada])
{
GuiInfo(playerid,"Ten pojazd ma blokad? na kole!");
}
return 1;
}
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
TextDrawHideForPlayer(playerid,silnik);
Unfreeze(playerid,0);
SetTimerEx("SilnikOff",1000,false,"d",veh);
return 1;
}
else
{
if(SamochodInfo[veh][sPaliwo]<1)
{
GuiInfo(playerid,"Ten pojazd nie ma paliwa!");
return 1;
}
}
if((SamochodInfo[veh][sTyp]==1&&ToFrakcja(playerid,SamochodInfo[veh][sTypID]))||(veh<=4&&JazdaMa[playerid]==true))
{
if(strcmp(SamochodInfo[veh][sRanga],"brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pRanga])&&PlayerInfo[playerid][pLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==2&&PlayerInfo[playerid][pPraca]==SamochodInfo[veh][sTypID])
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(ToWlascicielAuto(playerid,veh))
{
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
if(SamochodInfo[veh][sTyp]==4&&PlayerInfo[playerid][pBiznes]==SamochodInfo[veh][sTypID])
{
if(strcmp(SamochodInfo[veh][sRanga]," brak",true))
{
if(strcmp(SamochodInfo[veh][sRanga],PlayerInfo[playerid][pBiznesRanga])&&PlayerInfo[playerid][pBiznesLider]==0)
{
GuiInfo(playerid,"Pojazd nie jest przepisany pod twoj? rang?!");
return 1;
}
}
SetTimerEx("SilnikStart",3500,0,"dd",veh,playerid);
GameInfo(playerid,"~g~Trwa odpalanie silnika",1);
return 1;
}
else
{
GuiInfo(playerid,"Nie jeste? upowa?niony do uruchomienia silnika!");
}
CancelSelectTextDraw(playerid);
return 1;
}


Mam nadziej?, ?e tym razem ?aden error/warning si? nie my?wietli ;]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-19, 22:51


knifeman

Jot






Wiek: 31
Na forum: 5082 dni
Posty: 69
Nick w MP: Patrico_Ramirez



Respekt: 50

Ha ! Jeste? wielki dzi?kuj? za pomoc ;) 3 piwko dla ciebie.

Postaw piwo autorowi tego posta
 

 
Tagi: niedomknięta :: klamra
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] niedomknięta klamra Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku