| Blockland Forums > Modification Help |
| What does this error message actually mean? |
| (1/4) > >> |
| wizzlemanizzle:
I have been wondering for the longest time what the deal is with the "<input> (#) unable to find object: ' ' attempting to call function 'yourfunctionhere' " error message, why is it that alot of times no matter what you do, a method that should be perfectly valid gives this error? what does it mean - object ' ' , does this mean there is information missing? like for instance: --- Code: ---%client.player.setInvincibleMode( 1.0 , 0.2 ); --- End code --- I know this is supposed to be a valid method, but in blockland you get that god awful message telling you that you are an idiot. :/ if(%answer == serious) { loveforever(); cherishforever(); } else { F***off(); } |
| Headcrab Zombie:
It means: --- Quote from: wizzlemanizzle on September 11, 2011, 05:21:37 PM ---unable to find object --- End quote --- IE, the object doesn't exist. In your example, perhaps the player died and hasn't yet respawned. To avoid this, you could do something like this: --- Code: ---if(isObject(%client.player)) %client.player.setInvincibleMode(1.0,0.2); --- End code --- |
| wizzlemanizzle:
ok, but what about when player has not died, and IS spawned I.E. the situation I performed that method in? |
| Headcrab Zombie:
You probably didn't define %client. Post the script that is giving the error. |
| wizzlemanizzle:
--- Code: ---function ServerCmdTestinvc() //I am pretty sure %client is optional in here, but I tested with and without. { %client.player.setInvincibleMode(1.0,0.2); } --- End code --- |
| Navigation |
| Message Index |
| Next page |