Raised This Month: $ Target: $400
 0% 

XP Mode problem.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-11-2011 , 11:52   XP Mode problem.
Reply With Quote #1

Hi everyone,

I'm creating a Knife XP Mod for my knife server but i have a problem.
Everytime someone kills me or i kill someone or i just die, i get a weird output wich is "[XP] You received 159294563 points for a kill!". While receiving this message, i'm not getting any points + the output is wrong because i set the points to 8 for a kill. Could someone help me?

PHP Code:
public eDeath() {
    new 
iKiller read_data(1)
    new 
headshot read_data(3)
    
    if(
headshot) {
        
iPlayerXP[iKiller] += get_pcvar_num(iKillHSXP)
        
ColorChat(iKillerGREEN"%s^x01 You received^x03 %d^x01 XP Points for a Headshot!"iPrefixiKillHSXP)
    }
    
    
iPlayerXP[iKiller] += get_pcvar_num(iKillXP)
    
ColorChat(iKillerGREEN"%s^x01 You received^x03 %d^x01 XP Points for a Kill!"iPrefixiKillXP)
    
    
SaveData(iKiller)

PHP Code:
register_event("DeathMsg""eDeath""a"
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 


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


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