EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar/IF> get PID
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: Wed, 8. Sep 10, 17:43    Post subject: <RetVar/IF> get PID Reply with quote Print

[skip|else] if [not]|while [not]| <RetVar/IF> = get PID


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, otherwise if you use a Variable it will be the PID as an integer.


Every time a script runs, it is given a unique identifier called 'pid'.
The term pid traces its routes to Unix systems where this meant “process ID”.
The distinction between a process and a task in X3 - TC is a thin one.
A task ID is a short form to reference a process that is attached to a given object to perform a given set of functions.
A process ID is the internal reference number given each time a new instance of a script is instantiated.
Different ships will have scripts that run under identical task ID numbers.
A process ID number for a running process will never be the same as the process ID for any other currently running process.


Example:

$PID = get PID

$PID will be an integer representing the scripts current PID.


Command Location:



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



Joined: 02 Apr 2006
Posts: 16924 on topic

Thank you for registering your game
PostPosted: Mon, 20. Sep 10, 19:53    Post subject: [TiP][49] 286471 Reply with quote Print

[skip|else] if [not]|while [not]| <RetVar/IF> = get PID


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Rückgabewert des Befehls, mit einer 'if' Anweisung wird dieser TRUE (1) (wahr) sein, wenn die Bedingung erfüllt ist oder FALSE (0) (falsch), wenn nicht. Andernfalls, wenn eine Variable genutzt wird, wird er die PID als ganze Zahl zurückgeben.

Jedes Mal wenn ein Script läuft, erhält es eine einzigartige Bezeichnung, die sogenannte "pid". Der Ausdruck hat seinen Ursprung in Unix Systemen, in denen er "Prozess ID" bedeutet. Der Unterschied zwischen einem Prozess und einem Task ist in X3:TC nur sehr klein.
Eine Task ID ist eine Kurzform, die auf einen Prozess verweist, der einem bestimmten Objekt zugewiesen ist, um eine Reihe von Funktionen auszuführen.
Eine Prozess ID ist die interne Referenzzahl, die jedes Mal zugewiesen wird, wenn eine neue Scriptinstanz erstellt wird.
Verschiedene Schiffe haben Scripte, die unter derselben Task ID laufen. Eine Prozess ID für einen laufenden Prozess hingegen wird nie die gleiche wie für zurzeit andere laufende Prozesse sein.


Beispiel:

$PID = get PID

$PID wird die zurzeit auf dem Script laufende PID als ganze Zahl sein.


Zu finden unter:



Back to top
View user's profile Send private message Visit poster's website
Juggernaut93





Joined: 17 Jul 2011
Posts: 1784 on topic
Location: Battipaglia (SA)
Thank you for registering your game
PostPosted: Fri, 1. Jun 12, 17:21    Post subject: [39]286471 Reply with quote Print

[skip|else] if [not]|while [not]| <RetVar/IF> = get PID


[skip|else] if [not]|while [not]| = La possibile istruzione 'Condizionale' che può essere usata con questo comando.
<RetVar/IF> = Ciò che restituisce il comando; se si usa un'istruzione 'if' sarà TRUE (1) se la condizione si verifica o FALSE (0) se fallisce; se invece usi una variabile, essa assumerà il valore intero del PID.


Ogni volta che si esegue uno script, ad esso viene assegnato un identificatore univoco chiamato 'PID'.
Il termine PID risale ai sistemi Unix, nei quali sta a significare "ID del Processo" (Process ID).
La distinzione tra un processo e un task in X3 - TC è sottile.
Un ID di task è una forma breve per referenziare un processo assegnato ad un dato oggetto per eseguire un certo set di funzioni.
Un ID di processo è il numero interno di riferimento assegnato ogni volta che viene istanziata una nuova istanza di uno script.
Navi differenti avranno script in esecuzione con identici ID di task.
Un ID di processo per un processo in esecuzione non sarà mai lo stesso di un altro processo in esecuzione.


Esempio:

$PID = get PID

$PID sarà un intero che rappresenta il PID corrente di uno script.


Posizione del comando nella lista:



Back to top
View user's profile Send private message Send e-mail
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 Thu, 21. Aug 14, 00:22

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.36452 seconds, sql queries = 26