Raised This Month: $ Target: $400
 0% 

even the odds mod can't compile. find my bugs please


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 06-17-2009 , 13:58   even the odds mod can't compile. find my bugs please
Reply With Quote #1

try to rewirte my code, with a little help from sylwesters code.


try compile it but get some erros, please tell me the bugs.

cs don't "load" my plugins i tryed to compile sylvesters version, but cs still won't load it, why not?

PHP Code:
//Even the Odds
//V 0.2 rewrite

#include <amxmodx>
#include <fun>
#include <hamsandwich>

#define MAX_PLAYERS 32
#define MAX_LEVEL = 30

new gPlayerLevel[MAX_PLAYERS 1//player level and ID
new gCalcHealth gPlayerLevel[id]

public 
plugin_init() {
    
register_plugin("Even The Odds""0.2""Beancake12")
    
RegisterHam(Ham_Spawn"player""player_spawn"1)
    
register_event("HLTV""event_new_round""a""1=0""2=0")
}

public 
player_spawn(id) {
    if(
is_user_alive(id))
        
set_level(id)
        new 
gCalcHealth 310
        set_user_health
(idgCalcHealth-(10*gPlayerLevel[id]))
}

public 
set_level(id) {
    if(!
is_user_connected(id))
        return
    
gPlayerLevel[id] = (get_user_frags(id) - get_user_deaths(id))
    if(
gPlayerLevel[id] < 1)
        
gPlayerLevel[id] = 1
    
if(gPlayerLevel[id] > MAX_LEVEL)
        
gPlayerLevel[id] = MAX_LEVEL


Last edited by timian; 06-19-2009 at 05:42.
timian is offline
 


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 15:36.


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