AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin.sma error (https://forums.alliedmods.net/showthread.php?t=308220)

PurposeLessx 06-11-2018 05:57

Admin.sma error
 
1 Attachment(s)
I tried to optimize admin.sma plugin. But While user connects to server, server shuts down.
Can you fix my mistake please?

^SmileY 06-11-2018 14:05

Re: Admin.sma error
 
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?

PurposeLessx 06-11-2018 20:15

Re: Admin.sma error
 
Quote:

Originally Posted by ^SmileY (Post 2596420)
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.

^SmileY 06-11-2018 20:57

Re: Admin.sma error
 
soo use 1.8.3 already have best optmize for the default plugins :D

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

PurposeLessx 06-12-2018 04:03

Re: Admin.sma error
 
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 06-12-2018 17:37

Re: Admin.sma error
 
++

OciXCrom 06-12-2018 18:21

Re: Admin.sma error
 
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.

PurposeLessx 06-12-2018 18:25

Re: Admin.sma error
 
Quote:

Originally Posted by OciXCrom (Post 2596618)
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.

^SmileY 06-12-2018 20:29

Re: Admin.sma error
 
Quote:

Originally Posted by PurposeLessx (Post 2596619)
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?

OciXCrom 06-13-2018 07:12

Re: Admin.sma error
 
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.


All times are GMT -4. The time now is 04:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.