Raised This Month: $ Target: $400
 0% 

Simple arrays problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-18-2010 , 15:49   Re: Multi dimensional arrays problems.
Reply With Quote #5

still got no idea, im confused - totally...
How can i make the "title" go up by 1 when player levels up?:

PHP Code:
    if(g_xp[killer] >= LEVELS[g_level[killer]]) {
        ++
g_level[killer];
        
//title lvl code
        
         
        
client_print(killerprint_chat"[COD] Congratulations. You have advanced to a new level. Current level: %i, rank: lawl"g_level[killer])
    } 
I really need your help :/

Edit: Tried this, but didn't work:
PHP Code:
g_title[killer] = TITLES[g_level[killer]]; 
Knowing that the title will be set to the row number of levels, and since level row number increased it would move the title up by 1 unit.
Still seems not to work

Last edited by Lure.d; 03-18-2010 at 15:55.
Lure.d is offline
Send a message via Skype™ to Lure.d
 



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 08:42.


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