Blockland Forums > Modification Help

Need help with color of messageall now...

Pages: << < (5/5)

Destiny/Zack0Wack0:


--- Quote from: otto-san on April 26, 2011, 11:11:20 PM ---Anyways, don't get into the habit of using quotation marks either way. Most people including myself use apostrophes because they work indefinitely.

--- End quote ---
Quotation marks ("") are strings that can be used everywhere. Apostrophes ('') are used for networking.

messageAll('',"text");
The '' part is a networking string. In this case, it's the type of message to send. When it's a blank networking string it just messages them in the chat. Otherwise it sends a different message type with the text being the content for the message type to use when it reaches the client.

For example:
messageAll('',"hello my name is bob"); //messages the entire server in the chat with "hello my name is bob"

messageAll('MsgItemPickup','',0,hammerItem.getID());//tells the entire server that the hammer should be in their first tool slot

otto-san:


--- Quote from: Destiny/Zack0Wack0 on April 26, 2011, 11:20:22 PM ----snip-

--- End quote ---
yes i know this.

i was talking specifically about the first argument in messageAll


but i didnt say that, so...

Swollow:

ok problem solved locking, thanks for the support guys.

Pages: << < (5/5)

Go to full version