| Blockland Forums > Modification Help |
| Host name code |
| (1/3) > >> |
| thaky:
i have a code and its for my own server build trust mod and here is the problem: --- Code: ---function serverCmdPlantBrick(%client) { if($ServerBuildTrust::Enabled) { %host = %client.bl_id != getNumKeyID(); if(getTrustLevel(%host,%client) < 2) { centerPrint(%client,"<color:FFC800> " @ %host.name @ " <color:FFFFFF>does not trust you enough to build on their server",2,2); return; } } Parent::serverCmdPlantBrick(%client); } --- End code --- the darn %host thing doesnt want to work can some one help me? |
| Furling:
check your console.txt in blockland file. |
| thaky:
It says: --- Code: ---ERROR: getBL_IDfromObject() - "1" (%obj1) is not an object BackTrace: ->[JVS_Content]ServerCmdPlantBrick->[ServerBuildTrust]ServerCmdPlantB rick->getTrustLevel --- End code --- |
| Kalphiter:
%host = 1 |
| otto-san:
localClientConnection is the server host. |
| Navigation |
| Message Index |
| Next page |