| variable messagebox | |
|
|
Auteur | Message |
---|
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: variable messagebox Dim 23 Mar 2008 - 16:02 | |
| comment inscrit-on une variable dans un messagebox(quand je met le nom de ma variable,ca la met dans le messagebox,pas son contenu...) |
|
| |
daminetreg Administrateur
Messages : 16998 Localisation : Siege du CBNA! Projet Actuel : Site Web du CBNA, version beta :
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 17:17 | |
| Tu dois écrires ton code ainsi: - Code:
-
show_message(" Bonjour " + string(variable_nom) + ", le CBNA va t'aider."); Si tu utilies le drag and drop, tu dois écrire ceci dans la boîte de texte (c'est le même principe): - Code:
-
"Bonjour " + string(variable_nom) + ", le CBNA va t'aider." _________________ Mon CV : fr - de - en Tous Ensemble! Réalisons! |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 17:52 | |
| |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 18:33 | |
| Et pour que s'il y a une variable particulière ça affiche un autre message que le premier message? Ex:si la variable est:jerome au lieu de faire "bonjour,jerome,etc..." ça fasse"au revoir,jerome,etc..." |
|
| |
Wargamer *Excellent utilisateur*
Messages : 6938 Projet Actuel : Bataille de cake au fruits
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 18:34 | |
| show_message("Au revoir " + string(variable_nom) + ", va en enfer") _________________ Règle #1 du CBNA, ne pas chercher à faire dans la subtilité; personne comprend |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 18:41 | |
| non,je veut dire que le message autours du nom soit en fonction de la variable |
|
| |
M@d_Doc Modérateur
Messages : 6600 Localisation : 47°44'8.04 Projet Actuel : aucun
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 18:43 | |
| ben - Code:
-
if (name="Jerome") { show_message(...); } else { show_message(...); } _________________ Tous les icones de gm utilisables sur le cbna ICI |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 18:48 | |
| merci je vait enfin pouvoir programmer mon programme humoristique. |
|
| |
daminetreg Administrateur
Messages : 16998 Localisation : Siege du CBNA! Projet Actuel : Site Web du CBNA, version beta :
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 18:51 | |
| Les conditions sont la base de la programmation, tu devrais savoir ça normalement. :nezrouge: _________________ Mon CV : fr - de - en Tous Ensemble! Réalisons! |
|
| |
edi9999 Utilisateur confirmé: Rang *****
Messages : 2480 Localisation : France Projet Actuel : theatre flashy
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 19:00 | |
| |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 19:30 | |
| Superbe le tutoriel,je n'avais JAMAIS vu ça avant!!! |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Dim 23 Mar 2008 - 19:36 | |
| euh,au fait,y'a pas un moyen de tronquer une variable texte pour n'en garder le premier caractère?
EDIT:y'a plus personne? |
|
| |
edi9999 Utilisateur confirmé: Rang *****
Messages : 2480 Localisation : France Projet Actuel : theatre flashy
| Sujet: Re: variable messagebox Lun 24 Mar 2008 - 12:32 | |
| regarde un peu dans l'aide
String handling functions The following functions deal with characters and string.
chr(val) Returns a string containing the character with asci code val. ord(str) Returns the asci code of the first character in str. real(str) Turns str into a real number. str can contain a minus sign, a decimal dot and even an exponential part. string(val) Turns the real value into a string using a standard format (no decimal places when it is an integer, and two decimal places otherwise). string_format(val,tot,dec) Turns val into a string using your own format: tot indicates the total number of places and dec indicated the number of decimal places. string_length(str) Returns the number of characters in the string. string_pos(substr,str) Returns the position of substr in str (0=no occurrence). string_copy(str,index,count) Returns a substring of str, starting at position index, and of length count. string_char_at(str,index) Returns the character in str at position index. string_delete(str,index,count) Returns a copy of str with the part removed that starts at position index and has length count. string_insert(substr,str,index) Returns a copy of str with substr added at position index. string_replace(str,substr,newstr) Returns a copy of str with the first occurrence of substr replaced by newstr. string_replace_all(str,substr,newstr) Returns a copy of str with all occurrences of substr replaced by newstr. string_count(substr,str) Returns the number of occurrences of substr in str. string_lower(str) Returns a lowercase copy of str. string_upper(str) Returns an uppercase copy of str. string_repeat(str,count) Returns a string consisting of count copies of str. string_letters(str) Returns a string that only contains the letters in str. string_digits(str) Returns a string that only contains the digits in str. string_lettersdigits(str) Returns a string that contains the letters and digits in str. |
|
| |
daminetreg Administrateur
Messages : 16998 Localisation : Siege du CBNA! Projet Actuel : Site Web du CBNA, version beta :
| Sujet: Re: variable messagebox Lun 24 Mar 2008 - 14:00 | |
| - PHENIXprod a écrit:
- ein?
Tu ne devrais pas être si impatient, il ne s'est passé que quelques heures entre ton dernier poste et celui que je cite (je l'ai supprimé) car sur certains forums, il faut attendre bien 1 semaine avant d'avoir une réponse. Le CBNA a pour usage d'être très réactif, mais parfois cela peut un peu durer un ou deux jours, surtout en période de fêtes. Enfin bref c'est pas grave, je le dis juste pour la prochaine fois. _________________ Mon CV : fr - de - en Tous Ensemble! Réalisons! |
|
| |
PHENIXprod Utilisateur confirmé: Rang ****
Messages : 835
| Sujet: Re: variable messagebox Lun 24 Mar 2008 - 15:02 | |
| Désolé,je suis par nature impatient. |
|
| |
Malax Utilisateur confirmé: Rang **
Messages : 496 Localisation : Aix-en-Provence Projet Actuel : Lemmings Struggle (abandonné)
| Sujet: Re: variable messagebox Mer 26 Mar 2008 - 14:05 | |
| Sinon il y a des librairies disponibles sur le site du CBNA, comme Message lib qui te simplifiera la vie. |
|
| |
Contenu sponsorisé
| Sujet: Re: variable messagebox | |
| |
|
| |
| variable messagebox | |
|