| Blockland Forums > Modification Help |
| messageclient(); does not work? |
| << < (3/6) > >> |
| Nexus:
--- Quote from: deathrider on April 07, 2012, 08:49:06 PM ---how do i get this to only do it once when you spawn in the server not every time you spawn --- Code: ---function gameConnection::spawnplayer(%client) { messageClient(%client, '', '\c6This server is running the Personal Message mod \c6use \c3/message USER MESSAGE \c6to send them a personal message.'); } --- End code --- --- End quote --- you should use regular "quotes" instead of 'apostrophes' around the words you want people to read, because apostrophes work differently. Honestly I myself don't really understand it entirely, but generally: If you are sending a command, it goes in apostrophes. If you are sending a string for the player to read, it goes in quotes. If someone could clarify it better that would be nice. |
| deathrider:
--- Quote from: Nexus on April 07, 2012, 10:50:01 PM ---you should use regular "quotes" instead of 'apostrophes' around the words you want people to read, because apostrophes work differently. Honestly I myself don't really understand it entirely, but generally: If you are sending a command, it goes in apostrophes. If you are sending a string for the player to read, it goes in quotes. If someone could clarify it better that would be nice. --- End quote --- i think it needs to be ' as /c6 is a command if i have read right from other scrips this one i learnt from cell phone mod --- Quote from: Ipquarx on April 07, 2012, 09:26:04 PM ---Use gameConnection::onClientEnterGame. But parent it, and package it. --- End quote --- i have no idea how to package i know its a command no topics how to |
| deathrider:
i only need one thing, how to allow the var to allow more than one word |
| Treynolds416:
--- Quote from: deathrider on April 08, 2012, 03:44:36 AM ---i only need one thing, how to allow the var to allow more than one word --- End quote --- You can add more variables, like this: function servercmdmessage(%client,%user,%msg1,%msg2,%msg3,etc) Be careful though, I think the limit for arguments is around 13 or 15 |
| deathrider:
--- Quote from: Treynolds416 on April 08, 2012, 07:52:43 AM ---You can add more variables, like this: function servercmdmessage(%client,%user,%msg1,%msg2,%msg3,etc) Be careful though, I think the limit for arguments is around 13 or 15 --- End quote --- aw i was thinking i could do it like batch the more words you type it ads 1 to a var so it be you say hi code:%message you say hello how are you code: message message2 message 3 |
| Navigation |
| Message Index |
| Next page |
| Previous page |