EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar/IF><RefObj> get passenger array
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 14893 on topic

Thank you for registering your game
modified
PostPosted: Sat, 5. Feb 11, 15:39    Post subject: <RetVar/IF><RefObj> get passenger array Reply with quote Print

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get passenger array


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = The variable where the requested information is stored. This will be an array.
<RefObj> = The object that the command is to be run on. Valid objects can be a ships.

Returns the passengers onboard the selected <RefObj> as an array.


Example:

Let's say you have two passengers onboard your ship.

$passenger.arr = [PLAYERSHIP] -> get passenger array
write to player logbook $passenger.arr
return null

This will write the names of the passengers onboard the [PLAYERSHIP] to the logbook in the format: Array ( Hayla Marval, Scot Marval )


Related Commands:

<RetVar/IF><RefObj> get marines array


Command Location:




Last edited by X2-Illuminatus on Tue, 22. Feb 11, 14:49; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Alex Vanderbilt
Winner X3 Sektorquest


MEDALMEDAL

Joined: 04 May 2006
Posts: 2103 on topic

Thank you for registering your game
PostPosted: Sun, 6. Feb 11, 12:26    Post subject: [TiP][49] 296292 Reply with quote Print

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get passenger array

[skip|else] if [not]|while [not]| = Mögliche Bedingung, die mit diesem Kommando verwendet werden kann.
<RetVar/IF> = Die Variable, in der die Informationen gespeichert werden. Die Variable stellt ein Array dar.
<RefObj> = Das Objekt, auf dem das Kommando ausgeführt werden soll. Zulässige Objekte sind Schiffe.

Gibt die Passagiere an Bord eines <RefObj> als Array aus.


Beispiel:

Als Beispiel werden 2 Passagiere an Bord eines Schiffes angenommen:

$passenger.arr = [PLAYERSHIP] -> get passenger array
write to player logbook $passenger.arr
return null

Das Kommando schreibt die Passagiere an Bord des [PLAYERSHIP] in das Logbuch des Spielers. Die Nachricht ist wie folgt formatiert: Array ( Hayla Marval, Scot Marval )


Verwandte Kommandos:

<RetVar/IF><RefObj> get marines array


Zu finden unter:


Back to top
View user's profile Send private message
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, 25. May 13, 03:30

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.16853 seconds, sql queries = 23