| Blockland Forums > Modification Help |
| New system for my chat bot, but it has a weird syntax error! |
| << < (2/3) > >> |
| Port:
--- Quote from: Wordy on March 30, 2012, 04:10:58 AM ---What's the use in returning the parent? --- End quote --- If the original function returns a value and you don't return what calling the parent returns, you'll break functions that use the return value of the original function. |
| adam savage:
Same error. I tried not returning it. I fixed the error myself, it was a different function that is was confusing its {} with the others. |
| otto-san:
--- Quote from: adam savage on March 30, 2012, 08:10:29 AM ---it was a different function that is was confusing its {} with the others. --- End quote --- which is why you should have --- Quote from: otto-san on March 29, 2012, 08:25:19 PM ---posted the entire code --- End quote --- just a note for the future |
| Chrono:
--- Quote from: Lugnut1206 on March 29, 2012, 08:39:09 PM ---oh my god that's the same stuff that's in rtb return parent::clientCmdChatMessage(%c,%a,%b,%fmsg,%cs,%name,%cp,%msg); do this parent::clientCmdChatMessage(%c,%a,%b,%fmsg,%cs,%name,%cp,%msg); stuff delivers syntax errors every loving time you try to do anything with TCP objects --- End quote --- That's not the part causing the syntax error. |
| Lugnut:
--- Quote from: Chrono on March 30, 2012, 01:54:06 PM ---That's not the part causing the syntax error. --- End quote --- i was abnormally mad that day i also read the posts above. no one ever told me the parent might return stuff >:( |
| Navigation |
| Message Index |
| Next page |
| Previous page |