Jump to content
  • 0

pomoc Help s dialogama učim sa dialogy


Invouk

Dotaz

Dobry den chcel by som sa opytat 
nudim sa robim si  dialogy V podstate sa ich učim
a chcel by som sa opytat prečo mi hadže chybu:
 

(232) : error 014: invalid statement; not in switch
(232) : warning 215: expression has no effect
(232) : error 001: expected token: ";", but found ":"
(232) : error 029: invalid expression, assumed zero
(232) : fatal error 107: too many error messages on one line
 
 
 
 
4 Errors.
 

Kod: http://pastebin.com/d3NcHs50

Link to comment
Share on other sites

14 odpovědí na tuto otázku

Recommended Posts

  • 0

Inak v riadku 274. máš chybu ...

--

Gramatickú chybu má aj v riadku nad tým aj predtým ;).

Vrátim sa k otázke.

Medzi riadok 231 a 232 pridaj switch.

if(response) {
  switch (listitem) {
    case 1: { // Nechýba ti tu case 0?
      // ..
    }
  } // Nezabudni pridať aj zátvorku
}
Link to comment
Share on other sites

  • 0

--

Gramatickú chybu má aj v riadku nad tým aj predtým ;).

Vrátim sa k otázke.

Medzi riadok 231 a 232 pridaj switch.

if(response) {
  switch (listitem) {
    case 1: { // Nechýba ti tu case 0?
      // ..
    }
  } // Nezabudni pridať aj zátvorku
}

Diky ako za radu ale:

http://pastebin.com/mVZcKUrs

Link to comment
Share on other sites

  • 0

Můžeš mě říct co jsi to udělal tady.?:

 

Edit:

 

Řádek 239 : Funkce není vyvolána :)))..Nemáš nikde ShowPlayerDialog :)...

+ opravou toho kódu níže by se ti měl opravit zbytek :)

                                        if(GetPlayerMoney == 1){
                                        {
                                        GivePlayerMoney(playerid, -1);
Link to comment
Share on other sites

  • 0

Tady to máš bez chyb..

 

http://pastebin.com/aYsxE60p

 

Když tam máš switch(listitem), tak už tam necpi if(listitem == neco), protože o to se stará switch a jeho case! Pokud je lisitem = 0, tak je to "case 0:"   a pokud je listitem 325 tak je "case 325:" atd...

--

Niekto nemá čo robiť :d.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...