Raised This Month: $ Target: $400
 0% 

Variable (array?) trouble...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-16-2007 , 15:33   Re: Variable (array?) trouble...
Reply With Quote #7

PHP Code:
new g_PlayerXP[MAX_PLAYERS][TOTAL_RACES]
new 
g_PlayerLevel[MAX_PLAYERS][TOTAL_RACES]
new 
g_PlayerRace[MAX_PLAYERS]
new 
g_PlayerRaceName[MAX_PLAYERS][18]
 
new 
xplevel_base[11] = {0,150,300,600,1000,1500,2100,2800,3600,4500,5500}
new 
xplevel_lev[MAX_LEVEL] = 0
new xpgiven_lev[MAX_LEVEL] = 0
new xpgiven 
PHP Code:
public set_xp_frontend() {
 
 for(new 
0MAX_LEVELj++) {
  if(
<= 10) {
   
xplevel_lev[j] = xplevel_base[j]
  } else {
   
xplevel_lev[j] = XP_PER_LEVEL_BASE + ((10) * XP_PER_LEVEL)
  }
 
  
xpgiven_lev[j] = XP_BASE + (XP_ADD_LEVEL)
 }


Plugin_init
PHP Code:
public plugin_init() {
 
 
register_plugin("MyMod""1.0""Greven")
 
 
register_event("DeathMsg""death""a")
 
set_task(0.01"set_xp_frontend"456)
 
set_task(0.1"show_player_stats",0,"",0,"b")

__________________
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

Last edited by BigDontCry; 11-16-2007 at 15:36.
BigDontCry 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 01:12.


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