Raised This Month: $ Target: $400
 0% 

# XP out of # XP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 08-24-2013 , 13:49   Re: # XP out of # XP
Reply With Quote #3

Quote:
Originally Posted by Black Rose View Post
formatex(szText, sizeof(szText) -1, "[%s]^n[XP : %i/%i]^n[Buy XP = /buyxp]", Prefix[Level[id]], eXP[id], VariableThatContainsXPForAllLevels[ Level[id] + 1 ])

There's a macro called charsmax() replacing sizeof()-1.

PHP Code:
#define MaxLevels 200
new const Levels[MaxLevels] =  

    
15,
    
40
    
75
    
130
    
200,  
    
300,
    
450
    
650
    
1000,
    
1500
This is part of code with const Levels[MaxLevels]

Should it be like that?

PHP Code:
formatex(szTextsizeof(szText) -1"[%s]^n[XP : %i/%i]^n[Kupenie XP = /buyxp]"Prefix[Level[id]], eXP[id], LevelsLevel[id] + ]) 


//EDIT : WORKS!

Now i need to know how to construct the code "on level up".

Just like on lvl up = say "player has leveled up to 50"
__________________
Latest plugin: dHUD Round | Timeleft

Last edited by Ardonicek; 08-24-2013 at 13:53.
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
 



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 18:58.


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