| Unknown variable or array index out of bounds | |
|
|
Auteur | Message |
---|
Wargamer *Excellent utilisateur*
Messages : 6938 Projet Actuel : Bataille de cake au fruits
| Sujet: Unknown variable or array index out of bounds Mar 8 Avr 2008 - 2:39 | |
| c'est quoi cette erreur? j'utilise ca: room_goto(Niveau[global.niveau]) qui marchait très bien mais qui soudainement, ma laisser tomber... _________________ Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend |
|
| |
Blizter Banni(e)
Messages : 2002
| Sujet: Re: Unknown variable or array index out of bounds Mar 8 Avr 2008 - 3:36 | |
| Tu accède a un variable dans ton array qui n'est pas là |
|
| |
Wargamer *Excellent utilisateur*
Messages : 6938 Projet Actuel : Bataille de cake au fruits
| Sujet: Re: Unknown variable or array index out of bounds Mer 9 Avr 2008 - 1:51 | |
| :p_gne: _________________ Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend |
|
| |
Adamo Utilisateur confirmé: Rang ***
Messages : 681 Localisation : Quebec
| Sujet: Re: Unknown variable or array index out of bounds Mer 9 Avr 2008 - 7:54 | |
| redefini ta variable plus haute parceque si ta defini seulement par exemple Niveau[10] = 0 si ta variable global.niveau monte plus haut que 10 ca va pas aller plus haut alors tu met genre Niveau[300] = 0 et ^^ evite de prendre global.niveau et Niveau[] comme variable parceque ca fait assez identique si tu veut eviter les probleme de variables |
|
| |
Devil37 Utilisateur confirmé: Rang *****
Messages : 1815
| Sujet: Re: Unknown variable or array index out of bounds Mer 9 Avr 2008 - 12:16 | |
| Il faut que chaque exemplaire du tableau Niveau[global.niveau] soit défini, donc soit tu fais une petite boucle, soit tu le fais à la main: - Code:
-
Niveau[1]=taroom1 Niveau[2]=taroom2 Niveau[3]=taroom3 Niveau[4]=taroom4 Niveau[...]=taroom...
|
|
| |
Wargamer *Excellent utilisateur*
Messages : 6938 Projet Actuel : Bataille de cake au fruits
| Sujet: Re: Unknown variable or array index out of bounds Jeu 10 Avr 2008 - 2:19 | |
| ah ok j'avait fait que ma varaible global.niveau=2 et la room_goto(Niveau[global.niveau]) m'envoie au niveau 2 mais trop simple pour marcher lol :p_merci: _________________ Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend |
|
| |
Super-Mouton *Excellent utilisateur*
Messages : 4916 Localisation : Cyberworld Projet Actuel :
| Sujet: Re: Unknown variable or array index out of bounds Jeu 10 Avr 2008 - 2:34 | |
| room_goto("Niveau"+string(global.niveau)), non? (À moins que j'aie mal compris) _________________ Hey là tabarnak lâche ma sig sacha >=| |
|
| |
Wargamer *Excellent utilisateur*
Messages : 6938 Projet Actuel : Bataille de cake au fruits
| Sujet: Re: Unknown variable or array index out of bounds Jeu 10 Avr 2008 - 3:32 | |
| yep ca marche :p_merci: _________________ Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend |
|
| |
Contenu sponsorisé
| Sujet: Re: Unknown variable or array index out of bounds | |
| |
|
| |
| Unknown variable or array index out of bounds | |
|