Raised This Month: $170 Target: $400
 42% 

Admin.sma error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-11-2018 , 05:57   Admin.sma error
Reply With Quote #1

I tried to optimize admin.sma plugin. But While user connects to server, server shuts down.
Can you fix my mistake please?
Attached Files
File Type: sma Get Plugin or Get Source (admin.sma - 56 views - 8.2 KB)
PurposeLessx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-11-2018 , 14:05   Re: Admin.sma error
Reply With Quote #2

Code:
new bool:g_CaseSensitiveName[33],
AdminCount,
amx_mode,
amx_password_field2[27],
amx_default_access2[27];
Wow did you flagged all these vars to bool?

Anway i did not see more code, but whay you need to edit in admin.sma?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-11-2018 , 20:15   Re: Admin.sma error
Reply With Quote #3

Quote:
Originally Posted by ^SmileY View Post
Code:
new bool:g_CaseSensitiveName[33],
AdminCount,
amx_mode,
amx_password_field2[27],
amx_default_access2[27];
Wow did you flagged all these vars to bool?

Anway i did not see more code, but whay you need to edit in admin.sma?
Yes, I have flagged all these vars to bool. I tried to make them optimized but I guess I couldn't.
I want to edit in admin.sma and also (all default plugins like admin.sma & adminchat.sma etc)
because I want my server to be optimized and made for 1.8.3 version.
PurposeLessx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-11-2018 , 20:57   Re: Admin.sma error
Reply With Quote #4

soo use 1.8.3 already have best optmize for the default plugins

Ps. You need to know how to code in pawn first
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-12-2018 , 04:03   Re: Admin.sma error
Reply With Quote #5

I don't think it's the best optimize for the default plugins. I think of there should be more optimized.
So can you give me optimize commands I should use instead?

Like;

get_cvar_num("sv_gravity")
get_pcvar_num(sv_gravity);
PurposeLessx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-12-2018 , 17:37   Re: Admin.sma error
Reply With Quote #6

++
PurposeLessx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-12-2018 , 18:21   Re: Admin.sma error
Reply With Quote #7

I doubt that someone with minimal coding knowledge can optimize a plugin better than the AMXX developers. You're probably going to make it worse. The default plugins aren't perfect, but they work without any problems. I suggest you leave it as is.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-12-2018 , 18:25   Re: Admin.sma error
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
I doubt that someone with minimal coding knowledge can optimize a plugin better than the AMXX developers. You're probably going to make it worse. The default plugins aren't perfect, but they work without any problems. I suggest you leave it as is.
Can't someone make them better? Not me, I cannot, I know. But People who are as xPaw, can make, according to me. I need all default plugins who are made by optimized.
PurposeLessx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-12-2018 , 20:29   Re: Admin.sma error
Reply With Quote #9

Quote:
Originally Posted by PurposeLessx View Post
Can't someone make them better? Not me, I cannot, I know. But People who are as xPaw, can make, according to me. I need all default plugins who are made by optimized.
Omg, you come from mars? jupter maybe?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-13-2018 , 07:12   Re: Admin.sma error
Reply With Quote #10

Many people can, but not many people want to. Even I can do it, but I don't really feel like doing it at the moment.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:43.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode