14.05.2013, 21:24
(
Последний раз редактировалось Kwarde; 15.05.2013 в 09:10.
)
NOTE: Question solved; please don't reply something like "return 1" or "return 0" unless if you have extra usefull information
Hello there!
I have a question for you!
There are callbacks like OnDialogResponse() where you must use 'return 0' if nothing happened so that other scripts will use the function too.
Now I am just wondering, do I need to use 'return 1;' or 'return 0;' in OnPlayerConnect() and OnPlayerDisconnect()? I first thought, let's just ignore it and don't use any returns, but sscanf2 forces me to do so
.
Because if I do this wrong, the script I made (check my signature) might bug the gamemode or other filterscripts!
Normally I'd test it out, but I made a script for someone using return 0 (just like in this BugReport filterscript) but that seemed to bug his server.. but I use this filterscript in my local server too (for testing off course) without any problems!
Kind regards,
Kwarde
Hello there!
I have a question for you!
There are callbacks like OnDialogResponse() where you must use 'return 0' if nothing happened so that other scripts will use the function too.
Now I am just wondering, do I need to use 'return 1;' or 'return 0;' in OnPlayerConnect() and OnPlayerDisconnect()? I first thought, let's just ignore it and don't use any returns, but sscanf2 forces me to do so
.Because if I do this wrong, the script I made (check my signature) might bug the gamemode or other filterscripts!
Normally I'd test it out, but I made a script for someone using return 0 (just like in this BugReport filterscript) but that seemed to bug his server.. but I use this filterscript in my local server too (for testing off course) without any problems!
Kind regards,
Kwarde


