Raised This Month: $51 Target: $400
 12% 

Top Flags [08/09/2021]


Post New Thread Reply   
 
Thread Tools Display Modes
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 10-03-2018 , 12:29   Re: Top Flags [27/09/2018]
Reply With Quote #31

It cant be compiled since MAX_PLAYERS isnt defined.

PHP Code:
#if AMXX_VERSION_NUM < 183
#define MAX_PLAYERS 32
#endif 
__________________

Last edited by SomewhereLost; 10-03-2018 at 12:38.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Old 10-03-2018, 12:43
iceeedr
This message has been deleted by iceeedr.
Myshu
Junior Member
Join Date: Jul 2017
Old 10-03-2018 , 13:14   Re: Top Flags [27/09/2018]
Reply With Quote #32

//// TopFlags.sma
// F:\New folder\HLDS\cstrike\addons\amxmodx\scripting\ TopFlags.sma(60) : error 017: undefined symbol "client_print_color"
// F:\New folder\HLDS\cstrike\addons\amxmodx\scripting\ TopFlags.sma(60) : warning 215: expression has no effect
// F:\New folder\HLDS\cstrike\addons\amxmodx\scripting\ TopFlags.sma(60) : error 001: expected token: ";", but found ")"
// F:\New folder\HLDS\cstrike\addons\amxmodx\scripting\ TopFlags.sma(60) : error 029: invalid expression, assumed zero
// F:\New folder\HLDS\cstrike\addons\amxmodx\scripting\ TopFlags.sma(60) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file F:\New folder\HLDS\cstrike\addons\amxmodx\scripting\ compiled\TopFlags.amx (compile failed).

Error from original sma...
Myshu is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-03-2018 , 14:14   Re: Top Flags [27/09/2018]
Reply With Quote #33

Code:
1.4 [03/10/2018]
* Since the amxx 1.9 is finally to be released, the plugin no longer supports previous versions.
Please update your server.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-03-2018 , 15:23   Re: Top Flags [27/09/2018]
Reply With Quote #34

Quote:
Originally Posted by iceeedr View Post
Code:
1.4 [03/10/2018]
* Since the amxx 1.9 is finally to be released, the plugin no longer supports previous versions.
Please update your server.
If you're going to do that, you don't need autoexecconfig.inc and you should use the new functions where possible, e.g. register_event_ex, set_task_ex, get_players_ex, create_cvar, bind_pcvar_*, etc.

You can avoid using get_user_name. Instead you can display a name in a message by using %n with the player's id.

Also take a look at the new stat constants instead of typing new stats[8], bodyhits[8].

csx.inc is not needed.

PHP Code:
new TimeString[MAX_NAME_LENGTH], TimeToReset get_pcvar_num(VarTimeToReset)
get_time"%d"TimeStringcharsmax(TimeString))
new 
Today str_to_num(TimeString
https://www.amxmodx.org/api/core/date ?
__________________

Last edited by OciXCrom; 10-03-2018 at 15:32.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-03-2018 , 15:31   Re: Top Flags [27/09/2018]
Reply With Quote #35

Quote:
Originally Posted by OciXCrom View Post
If you're going to do that, you don't need autoexecconfig.inc and you should use the new functions where possible, e.g. register_event_ex, set_task_ex, get_players_ex, create_cvar, bind_pcvar_*, etc. Also take a look at the new stat constants.
I'll take a look at the new constants stats, but regarding the new _ex, I find them useless. I read somewhere that set_task_ex ends up calling internally the regular set_task, am I wrong about this?
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-03-2018 , 15:33   Re: Top Flags [27/09/2018]
Reply With Quote #36

It's just a stock that allows you to use named constants instead of hardcoded flags, it calls set_task. It doesn't really matter, but it's good practice. I edited my post above with more stuff you can improve.
__________________

Last edited by OciXCrom; 10-03-2018 at 15:34.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-03-2018 , 15:48   Re: Top Flags [27/09/2018]
Reply With Quote #37

Quote:
Originally Posted by OciXCrom View Post
It's just a stock that allows you to use named constants instead of hardcoded flags, it calls set_task. It doesn't really matter, but it's good practice. I edited my post above with more stuff you can improve.
Thanks for the notes, I will check all possible changes with the new amxx to do my best.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-05-2018 , 12:04   Re: Top Flags [27/09/2018]
Reply With Quote #38

1.5 [05/10/2018]
*Plugin all updated with the new natives of amxx 1.9
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
X3.
Junior Member
Join Date: Sep 2018
Old 10-05-2018 , 13:46   Re: Top Flags [27/09/2018]
Reply With Quote #39

Quote:
Originally Posted by iceeedr View Post
1.5 [05/10/2018]
*Plugin all updated with the new natives of amxx 1.9
Is AMXX 1.9 stable now?
X3. is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-05-2018 , 13:48   Re: Top Flags [27/09/2018]
Reply With Quote #40

Quote:
Originally Posted by X3. View Post
Is AMXX 1.9 stable now?
I have used since the nomenclature 1.8.3 (late 2017), and now that it is finally to be officialized is more stable than ever.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Reply



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:07.


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