Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: New command getPlayerUID and _uid in OPC/OPD  (Read 3768 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwarden

  • Members
  • *
New command getPlayerUID and _uid in OPC/OPD
« on: 21 Jun 2009, 12:44:56 »
http://forums.bistudio.com/showpost.php?p=1319719&postcount=2

Quote
there was unfortunately typo in the readme about "GetPlayerID"
so correct usage syntax is

 
Code: [Select]
getPlayerUID unit;

works only in multiplayer
when used on AI it returns empty string
when used on player it returns "UID" (equal to one you see in profile)

also there is more surprises available and related to this
 for OnPlayerConnected and OnPlayerDisconnected commands
is now returned third variable _uid which contains this "UID" too

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: New command getPlayerUID and _uid in OPC/OPD
« Reply #1 on: 21 Jun 2009, 18:18:40 »
Thanks Dwarden!  :)
try { return true; } finally { return false; }