AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le Deal du moment : -50%
-50% Baskets Nike Air Huarache Runner
Voir le deal
69.99 €

 

 Unknown variable or array index out of bounds

Aller en bas 
5 participants
AuteurMessage
Wargamer
*Excellent utilisateur*
Wargamer


Messages : 6938
Projet Actuel : Bataille de cake au fruits

Unknown variable or array index out of bounds Empty
MessageSujet: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyMar 8 Avr 2008 - 2:39

c'est quoi cette erreur? triste
j'utilise ca: room_goto(Niveau[global.niveau])
qui marchait très bien mais qui soudainement, ma laisser tomber...

_________________
Unknown variable or array index out of bounds Wargamer3
Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend
Revenir en haut Aller en bas
Blizter
Banni(e)



Messages : 2002

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyMar 8 Avr 2008 - 3:36

Tu accède a un variable dans ton array qui n'est pas là gnii
Revenir en haut Aller en bas
Wargamer
*Excellent utilisateur*
Wargamer


Messages : 6938
Projet Actuel : Bataille de cake au fruits

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyMer 9 Avr 2008 - 1:51

:p_gne:

_________________
Unknown variable or array index out of bounds Wargamer3
Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend
Revenir en haut Aller en bas
Adamo
Utilisateur confirmé: Rang ***
Adamo


Messages : 681
Localisation : Quebec

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyMer 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
Revenir en haut Aller en bas
Devil37
Utilisateur confirmé: Rang *****
Devil37


Messages : 1815

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyMer 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...

_________________
Unvanquished Territories, un MMORPG 3D:
Son Blog
Son Forum
Revenir en haut Aller en bas
Wargamer
*Excellent utilisateur*
Wargamer


Messages : 6938
Projet Actuel : Bataille de cake au fruits

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyJeu 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:

_________________
Unknown variable or array index out of bounds Wargamer3
Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend
Revenir en haut Aller en bas
Super-Mouton
*Excellent utilisateur*
Super-Mouton


Messages : 4916
Localisation : Cyberworld
Projet Actuel : Sad

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyJeu 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 >=|
Unknown variable or array index out of bounds Balrogko6
Unknown variable or array index out of bounds Supermouton
Revenir en haut Aller en bas
Wargamer
*Excellent utilisateur*
Wargamer


Messages : 6938
Projet Actuel : Bataille de cake au fruits

Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds EmptyJeu 10 Avr 2008 - 3:32

yep ca marche :p_merci:

_________________
Unknown variable or array index out of bounds Wargamer3
Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend
Revenir en haut Aller en bas
Contenu sponsorisé





Unknown variable or array index out of bounds Empty
MessageSujet: Re: Unknown variable or array index out of bounds   Unknown variable or array index out of bounds Empty

Revenir en haut Aller en bas
 
Unknown variable or array index out of bounds
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» [Résolu] Unknown variable x.
» unknown variable laser2
» unknown action? 3D stéréoscopique
» [résolu] Une variable globale ou une variable locale persistante?
» index (ind) des objets

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum Le CBNA :: Développement :: Entraide débutants-
Sauter vers: