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: Who is "player" on a ded server?  (Read 2334 times)

0 Members and 1 Guest are viewing this topic.

Offline KeyCat

  • Members
  • *
Who is "player" on a ded server?
« on: 28 Dec 2002, 12:47:25 »
I assume none and that the "player" can't be used on server side script but wanted to ask, anybody knows for sure?

/Christer (a.k.a KeyCat)

- The journey is the reward!

Tactician

  • Guest
Re:Who is "player" on a ded server?
« Reply #1 on: 28 Dec 2002, 19:14:51 »
In a script run locally by the server, "player" will only function if a player is hosting.  Won't do anything on a dedicated server as far as I know.  The short answer is no, you can't use "player" in a server-side script.

Offline KeyCat

  • Members
  • *
Re:Who is "player" on a ded server?
« Reply #2 on: 29 Dec 2002, 06:47:46 »
Thanks for clarifying what I suspected T. I have things working with me hosting but want to write all my scripts so they also work on dedicated servers.

/Christer (a.k.a KeyCat)

- The journey is the reward!

Offline Dinger

  • Contributing Member
  • **
  • where's the ultra-theoretical mega-scripting forum
Re:Who is "player" on a ded server?
« Reply #3 on: 29 Dec 2002, 22:46:32 »
to detect a ded server:

?player == player:goto "nondedserver"
#dedserver
;ded-server only stuff here
#nondedserver
Dinger/Cfit