| Blockland Forums > Modification Help |
| Hydrobot v. 1.1 |
| << < (4/7) > >> |
| otto-san:
oh the p in the hydrobot package is capital it needs to be lowercase. |
| Pew446:
--- Quote from: FOX TAIL on October 31, 2010, 01:29:39 PM ---How would I combine all the packages into one? Could you post the code if you know? --- End quote --- --- Code: ---package hydro { function servercmdmessagesent(%client,%message) { parent::serverCmdMessageSent(%client,%message); if(strlwr(getSubStr(%message,0,2)) $= "hi") { messageall('',"\c3Hydrobot\c6: Hey there."); } elseif(strlwr(%text)$="i hate hydrobot") { messageall('',"\c3Hydrobot\c6: I hate you more" SPC %client.name @ "."); } } }; activatepackage(hydro); --- End code --- |
| FOX TAIL:
Thanks pew! ...New error |
| Pew446:
--- Quote from: FOX TAIL on October 31, 2010, 09:16:43 PM ---Thanks pew! ...New error --- End quote --- Maybe it's the accidental space between the else if and the { Try replacing the one line with this: }elseif(strlwr(%text)$="i hate hydrobot"){ |
| Uristqwerty:
No, spacing around {}s is irrelevant. The problem is the missing space in the "elseif". It should be "else if". |
| Navigation |
| Message Index |
| Next page |
| Previous page |