| Blockland Forums > Modification Help |
| Why wont this work? |
| (1/2) > >> |
| xcruso:
Hey Why wont this one work ? --- Code: ---function serverCmdstuff(%this) ///stuff { findClientByName(%this).clanPrefix = "ClanTagHere"; } --- End code --- I just made it fast to check if it worked and it didn't |
| MegaScientifical:
Because %this isn't a name, it's the client. Remove the findClientByName around it and it will work. You REALLY have to stop rushing into things, dude. |
| xcruso:
--- Quote from: MegaScientifical on September 02, 2011, 12:33:30 PM ---Because %this isn't a name, it's the client. Remove the findClientByName around it and it will work. You REALLY have to stop rushing into things, dude. --- End quote --- yes i kinda knew that :P thanks anyway. |
| Blocker Ctgr:
--- Quote from: xcruso on September 02, 2011, 12:29:24 PM ---Hey Why wont this one work ? --- Code: ---function serverCmdstuff(%this) ///stuff { findClientByName(%this).clanPrefix = "ClanTagHere"; } --- End code --- I just made it fast to check if it worked and it didn't --- End quote --- should be --- Code: ---function serverCmdstuff(%name) { findClientbyName(%name).clanPrefix=("ClanTagHere"); } --- End code --- |
| Katadeus:
Yeah, you had three slashes in stead of two. This will actually cause it to malfunction, as far as I know. |
| Navigation |
| Message Index |
| Next page |