Raised This Month: $ Target: $400
 0% 

Detect something what was previous.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 04-07-2009 , 13:09   Detect something what was previous.
Reply With Quote #1

Is that correct 0_0 ? ,I just need get Last/Old Level before giving him new one(PlayerLevel[id] += 1;).

PHP Code:
new LastLevel[33];

if(
PlayerXp[id] >= LEVELS[PlayerLevel[id]]) // Checks level/Level up.
{
     
PlayerLevel[id] += 1;
}
else if (
PlayerXp[id] < LEVELS[PlayerLevel[id]])
{
    
LastLevel[id] = PlayerLevel[id]


Last edited by xbatista; 04-07-2009 at 13:13.
xbatista is offline
Send a message via Skype™ to xbatista
 


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


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