Raised This Month: $ Target: $400
 0% 

Variable (array?) trouble...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-16-2007 , 14:04   Re: Variable (array?) trouble...
Reply With Quote #1

Here's my "death" function...

PHP Code:
public death() {
 
 new 
killer read_data(1)
 new 
victim read_data(2)
 new 
headshot read_data(3)
 
 new 
g_Pl_Race g_PlayerRace[killer]
 
 new 
kname[32], vname[32]
 
get_user_name(killerkname31)
 
get_user_name(victimvname31)
 
 if(
is_user_connected(killer)) {
 
  
xpgiven xpgiven_lev[g_PlayerLevel[killer][g_Pl_Race]]
  
g_PlayerXP[killer][g_Pl_Race] += xpgiven
 
  client_print
(killerprint_chat"[%s] You recieved %d XP for killing %s"MODxpgivenvname)
 
 }
 
 return 
PLUGIN_CONTINUE

The players XP won't increase...
The client_print shows the right information (lvl 0 get 60 XP for a kill)... But it just won't add that to the clients XP....
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-16-2007 , 15:15   Re: Variable (array?) trouble...
Reply With Quote #2

show xplevel_lev
[ --<-@ ] Black Rose is offline
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 01:12.


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