What's wrong with my script?
#6

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Why do you create your arrays/strings before checking for the admin stuff and the syntax (sscanf)?
You're wasting a lot of memory if the command returns something before even using them...
Correct me if I am wrong, but wouldn't the local variables get destroyed once the function exits returning a value? Even tho I do the same as you just stated. But just wondering, because there are some people who use if-else instead of directly returning error/syntax in the command and I doubt they have any memory problem with it.
Reply


Messages In This Thread
What's wrong with my script? - by Zeus666 - 07.07.2016, 19:08
Re: What's wrong with my script? - by Vince - 07.07.2016, 19:21
Re: What's wrong with my script? - by Alpay0098 - 07.07.2016, 19:27
Re: What's wrong with my script? - by Stinged - 07.07.2016, 20:14
Re: What's wrong with my script? - by Shveps - 07.07.2016, 21:59
Re: What's wrong with my script? - by Sjn - 08.07.2016, 06:28
Re: What's wrong with my script? - by Zeus666 - 08.07.2016, 07:22
Re: What's wrong with my script? - by Sjn - 08.07.2016, 07:40
Re: What's wrong with my script? - by Stinged - 08.07.2016, 09:36
Re: What's wrong with my script? - by Zeus666 - 08.07.2016, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)