OnPlayerText
#5

You shouldn't really have your callbacks in separate files, it should mainly be like admin commands, or color defines, or dialog response(since that generally gets so big) or like certain jobs.

If you're getting symbol's already defined. Depending on how it's used, for example if you have new string[128]; then you can remove one of the defines at the top of the script (of course if it isn't a local variable) If you have global variables that are named the same things but are storing different types of data re name one, weather it be the variable in the include(old filterscript) or gamemode, but if it's in the include make sure that under all the callbacks that you are renaming it to the proper variable name.

Suggestion go to where you had your filterscript in the first place and just replace the variable name that is already defined with something else.

If you're getting already defined errors with callbacks, then what you need to do is under each callback get the script from the include (old filterscript) and just place it under the callback (in the gamemodes folder).

The only thing that should be in the include file are stocks, functions, and commands, all the callbacks should be in the gamemode file.
Reply


Messages In This Thread
OnPlayerText - by JaKe Elite - 03.12.2016, 12:35
Re: OnPlayerText - by JaKe Elite - 03.12.2016, 23:09
Re: OnPlayerText - by Tass007 - 03.12.2016, 23:21
Re: OnPlayerText - by JaKe Elite - 03.12.2016, 23:39
Re: OnPlayerText - by Tass007 - 03.12.2016, 23:51
Re: OnPlayerText - by JaKe Elite - 04.12.2016, 00:02
Re: OnPlayerText - by Tass007 - 04.12.2016, 00:04
Re: OnPlayerText - by JaKe Elite - 04.12.2016, 00:57
Re: OnPlayerText - by Tass007 - 04.12.2016, 02:26
Re: OnPlayerText - by Yaa - 07.12.2016, 12:57

Forum Jump:


Users browsing this thread: 3 Guest(s)