| Blockland Forums > Modification Help |
| "Unable to Find Object" AGAIN |
| << < (3/3) |
| CityRPG:
function GameConnection::autoAdminCheck GameConnection is a namespace, not a keyword. |
| Scout31:
Whoops, sorry. Again, typed on my phone, and I really wasn't paying attention to that |
| Lugnut:
--- Quote from: brickybob on February 06, 2012, 07:17:31 PM --- --- Code: ---function getgold(%client) { %client.bottomPrint(%client.gold, 3); } --- End code --- --- End quote --- make function getgold be function servercmdgetgold if you want it as /getgold ingame. |
| brickybob:
--- Quote from: Lugnut1206 on February 07, 2012, 03:33:27 PM ---make function getgold be function servercmdgetgold if you want it as /getgold ingame. --- End quote --- well i know that |
| Slicksilver:
--- Quote from: brickybob on February 07, 2012, 05:47:31 PM ---well i know that --- End quote --- --- Quote from: brickybob on February 07, 2012, 07:55:08 AM ---I was under the assumption that it would automatically use the client that sent the command. --- End quote --- Well, no. If it was a serverCmd that would be true. In it's current context, getGold is a serverside only function. If you want clients to be able to use it you must make a serverCmdGetGold. Otherwise you can run getGold(findClientByName("BrickyBob")); or some other way to get your client. It doesn't fill in non provided variables. |
| Navigation |
| Message Index |
| Previous page |