Raised This Month: $ Target: $400
 0% 

Level by XP.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 04-08-2009 , 08:57   Level by XP.
Reply With Quote #1

I can do XP by level :
PHP Code:
PlayerXp[Target] = LEVELS[PlayerLevel[Target]] 
How to do Level by XP? :
PHP Code:
PlayerLevel[Target] = ???? 
PHP Code:
new PlayerXp[33];
new 
PlayerLevel[33];

new const 
LEVELS[MAXLEVEL] = { 3006001000390059006900990012900,
1590019900239002890033000379004700054900610007860089000
100000110000120000130000150000
}; // Levels

PlayerXp[Target] = LEVELS[PlayerLevel[Target]]
PlayerLevel[Target] = ?????????? 
PHP Code:
if(PlayerLevel[id] < sizeof (LEVELS))
        {
            while(
PlayerXp[id] >= LEVELS[PlayerLevel[id]])
            {
                                  
PlayerLevel[id]++;
            }         
        } 

Last edited by xbatista; 04-08-2009 at 09:02.
xbatista is offline
Send a message via Skype™ to xbatista
Reply


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 02:24.


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