EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar> = read text: page= <Var/Number> id = <Var/Number>
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
mark_a_condren





Joined: 03 Aug 2005
Posts: 1384 on topic
Location: Newcastle - Australia
Thank you for registering your game
PostPosted: Thu, 9. Sep 10, 13:54    Post subject: <RetVar> = read text: page= <Var/Number> id = <Var/Number> Reply with quote Print

<RetVar> = read text: page= <Var/Number> id= <Var/Number>


<RetVar> = Returns the text stored in an external XML language file.
page= <Var/Number> = This is the page number of the XML file. You can enter this number directly in or via a variable, but in both cases it must be an integer.
id= <Var/Number> = This is the text id number for the required entry in the XML file. You can enter this number directly in or via a variable, but in both cases it must be an integer.


The file read from must have been previously loaded with a load text instruction.
Both page= <Var/Number> and id= <Var/Number> are numbers which specify the XML page id and text id tags where the text is stored in the language file.


Example:

$text = read text: page= 9999 id = 100
add custom menu item to array $menu: text = $text returnvalue = null

This would enter the appropriate text from the XML file into the menu $menu.


Command Location:



Back to top
View user's profile Send private message Send e-mail
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 14816 on topic

Thank you for registering your game
PostPosted: Tue, 28. Sep 10, 22:55    Post subject: [TiP][49] 286536 Reply with quote Print

<RetVar> = read text: page= <Var/Number> id= <Var/Number>


<RetVar> = Gibt den Text zurück, der in einer externen XML Sprachdatei gepeichert ist.
page= <Var/Number> = Dies ist die Seitenzahl der XML-Datei. Du kannst diese Zahl direkt in oder über eine Variable eingeben, aber in beiden Fällen muss es eine ganze Zahl sein.
id= <Var/Number> = Dies ist die Text id Nummer, für den benötigten Eintrag in der XML-Datei. Du kannst diese Nummer direkt i oder über eine Variable eingeben, aber in beiden Fällen muss es eine ganze Zahl sein.


Die Datei, aus der gelesen werden soll, muss vorher mit einem load text Befehl geladen werden.
Sowohl page= <Var/Number> als auch id= <Var/Number> sind Zahlen, die die XML page id und text id tags angeben, unter denen der Text in der Sprachdatei gespeichert ist.


Beispiel:

$text = read text: page= 9999 id = 100
add custom menu item to array $menu: text = $text returnvalue = null

Dies würde den entsprechenden Text aus der XML-Datei in das Menü $menu eintragen.


Zu finden unter:



Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Sat, 18. May 13, 21:40

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2009
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.14069 seconds, sql queries = 22