PAR: Expected ';' ( line 275 ) 2201 2

O temacie

Autor RafalBudzis

Zaczęty 19.08.2011 roku

Wyświetleń 2201

Odpowiedzi 2

RafalBudzis

RafalBudzis

Użytkownicy
posty1967
Propsy808
ProfesjaSkrypter
  • Użytkownicy
Dlaczego wyskakuje mi błąd ? skoro jest wszystko ok ?

Func Void FUNC_bitwa_kto(var C_NPC sel){
Mdl_ApplyOverlayMDS (sel,"Humans_drunken.mds");

if (upity == 0){
return 1;//wygrana  <<------------------------------- linia 275
};

if(upity > 0){
return 2;//remis
};

};
tutaj daje większy fragment kodu z pliku


Func Void Grubas_FUNC (){
if (Grubas >=0)
&& (Grubas < 10){

Mdl_SetModelFatness(hero,0);

};


if (Grubas >=10)
&& (Grubas < 20){

Mdl_SetModelFatness(hero,1);

};


if (Grubas >=20)
&& (Grubas < 30){

Mdl_SetModelFatness(hero,2);

};


if (Grubas >=30)
&& (Grubas < 40){

Mdl_SetModelFatness(hero,3);

};

if (Grubas >=40)
&& (Grubas < 50){

Mdl_SetModelFatness(hero,4);

};

};
Func Void FUNC_bitwa_kto(var C_NPC sel){
Mdl_ApplyOverlayMDS (sel,"Humans_drunken.mds");

if (upity == 0){
return 1;//wygrana <<------------------------------- linia 275
};

if(upity > 0){
return 2;//remis
};

};


Func Void FUNC_bitwa_piwo_5 (var C_NPC her,var C_NPC sel,var int ruda,var int Ile_piw){

Npc_RemoveInvItems (her,ItFoBeer,Ile_piw);
CreateInvItems (sel,ItFoBeer,Ile_piw);
var int losuj;
var int WIN;
losuj = Hlp_Random (Ile_piw - 1);

AI_UseItem (sel, ItFoBeer);
AI_UseItem (her, ItFoBeer);

if (losuj == 0){WIN = FUNC_bitwa_kto(sel);};


if (upity == 0){
AI_UseItem (sel, ItFoBeer);
AI_UseItem (her, ItFoBeer);
};

if (losuj == 1){WIN = FUNC_bitwa_kto(sel);};

if (upity == 0){
AI_UseItem (sel, ItFoBeer);
AI_UseItem (her, ItFoBeer);
};

if (losuj == 2){WIN = FUNC_bitwa_kto(sel);};

if (upity == 0){
AI_UseItem (sel, ItFoBeer);
AI_UseItem (her, ItFoBeer);
};

if (losuj == 3){WIN = FUNC_bitwa_kto(sel);};

if (upity == 0){
AI_UseItem (sel, ItFoBeer);
AI_UseItem (her, ItFoBeer);
};

if (losuj == 4){WIN = FUNC_bitwa_kto(sel);};

////////////////////////////kto wygrał

if (upity == 0){
if (win = 0){

PrintScreen     ("Remis", -1,-1,"font_old_20_white.tga",3);
};
if (win = 1){
PrintScreen     ("WYGRAŁEŚ", -1,-1,"font_old_20_white.tga",3);

};
if (win = 2){

PrintScreen     ("Remis", -1,-1,"font_old_20_white.tga",3);
};

}else{


PrintScreen     ("PRZEGRAŁEŚ", -1,-1,"font_old_20_white.tga",3);


};


};

Adanos

Adanos

Administrator
Szara eminencja
posty5204
Propsy3870
ProfesjaProgramista
  • Administrator
  • Szara eminencja
Zmień func void na func int. Twoja definicja funkcji mówi, że funkcja nic nie zwraca.

RafalBudzis

RafalBudzis

Użytkownicy
posty1967
Propsy808
ProfesjaSkrypter
  • Użytkownicy
Dzięki ;)
Do zamknięcia


0 użytkowników i 1 Gość przegląda ten wątek.
0 użytkowników
Do góry