View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-23-2019 , 16:32   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #293

Thanks for the detailed explanation. I understood most of it, while some of the stuff are way out of my field of knowledge, but I'm sure it will be helpful for anyone dealing with the "static or new" issue.

I'll use the 3 situations you pointed out on when to use "static" from now on.

One question though - what about declaring variables inside a loop? Look at the one "static" I left in my code on line 623. It's a "while" loop, so I can't declare it in the body of it.

--------------------------------------------------

When you have the time to continue reviewing, I would like to ask you to make a more in-depth review of the SQL part of the code, since this is my first time using SQL in a plugin and I have been getting some reports of SQL throwing errors. Here's one here.

I need to know if this is a problem from my plugin or something else. Thanks again.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom