Blockland Forums > Modification Help

Host name code

Pages: << < (2/3) > >>

phflack:

what does this do anyway?

--- Code: ---%host = %client.bl_id != getNumKeyID();

--- End code ---
it looks like %host = (%client.bl_id != getNumKeyID());, compairing then setting, as i think kalphiter is saying

Terminate:

while(1) { hostname(); }

User was banned for this post

Kalphiter:


--- Quote from: Terminate on February 24, 2011, 09:07:58 PM ---while(1) { hostname(); }

--- End quote ---
You're probably Curse.

Destiny/Zack0Wack0:


--- Quote from: otto-san on February 24, 2011, 05:20:28 PM ---localClientConnection is the server host.

--- End quote ---
Not on dedicated servers.

As Kalphiter mentioned:

--- Code: ---%client.bl_id != getNumKeyID()

--- End code ---
is setting the %host variable to a conditional value. Meaning, if the client's id is not the host's id then it will be 1 (true) or if not it will be 0 (false).

Remove the "%client.bl_id !=" and leave the getNumKeyID() part.

otto-san:


--- Quote from: Destiny/Zack0Wack0 on February 25, 2011, 03:25:26 AM ---Not on dedicated servers.

--- End quote ---
right. forgot about that.

Pages: << < (2/3) > >>

Go to full version