Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/showpost.php on line 215

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/showpost.php on line 220

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 49

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 97

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 101

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 109

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 120

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 124

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 132

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 201

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 378

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/class_core.php on line 2518

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3451

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3584

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638
Forum Colonization.fr - Afficher un message - Projet de mod, caractéristique de terrain ...
Afficher un message
  (#41 (permalink)) Vieux
Robert Surcouf Robert Surcouf est déconnecté
Vétéran
 
Avatar de Robert Surcouf
 
Messages: 230
Tournois joués: 0
Tournois gagnés: 0
Par défaut Code - 12/11/2009, 17h03

Tout d'abord je me suis occupé des boutons qui nous permettent de voyager vers l'Europe.
J'ai remplacé (l.225-228):
Spoiler

par
Spoiler


Puis à la fin du fichier j'ai ajouté les lignes qui donnent l'odre d'ouvrir la boite de dialogue quand on clique sur le bouton!
Spoiler

Enfin, il a fallu programmer la boite de dialogue à proprement parler (tout à la fin):

Spoiler


Le tout en n'oubliant pas de rajouter quelques lignes au début, sinon rien ne se passe!
Spoiler

Et bien sûr,
Spoiler

Voilà pour le code !
Réponse avec citation