Raised This Month: $ Target: $400
 0% 

Need Help with Errors and XP-Mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2007 , 12:16   Re: Need Help with Errors and XP-Mod
Reply With Quote #5

Quote:
PHP Code:
return PLUGIN_HANDLED 
is greater than
PHP Code:
return 
What? O_o . You sould learn more before to say that... .
You don't have to use HANDLED all the time...

Code:
#define PLUGIN_CONTINUE     0   /* Results returned by public functions */ #define PLUGIN_HANDLED      1   /* stop other plugins */ #define PLUGIN_HANDLED_MAIN 2   /* to use in client_command(), continue all plugins but stop the command */

Quote:
What in the hell is this, why do you have cstrike?
Because it gives money... But since it uses fakemeta he could use the money offset using set_pdata_*() .

Quote:
you shouldn't use fakemeta and engine together.
Not really. But his code doesn't use any engine function. So he can remove '#include <engine>'.


Quote:
Next, after 900 seconds it'll regenerate? :/

PHP Code:
#define TASK_REGEN 999 
This define isn't for that... It's a random value used by the task...


Quote:
Next, why is your CVAR a server command?

PHP Code:
register_cvar("sv_tfcmod""1"
should be:

PHP Code:
register_cvar("amx_tfcmod""1"
I agree to not use sv_ prefix. But he can use other than 'amx_'.


Quote:
Change on all:

PHP Code:
if ( get_cvar_num(sv_tfcmod) == 
What?!

He should use pcvar.

So, something like :

Code:
new p_mode, p_perkill     public plugin_init() {     p_mode = register_cvar( "sv_tfcmod", "1" )     p_perkill = register_cvar( "XP_per_kill", "20" ) } myfunction() {     if( !get_pcvar_num( p_mode ) )         return;     }
__________________

Last edited by Arkshine; 10-01-2007 at 12:19.
Arkshine is offline
 



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 16:06.


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