Raised This Month: $51 Target: $400
 12% 

[Req] Gunxp Percentage with decimals


Post New Thread Reply   
 
Thread Tools Display Modes
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 02-23-2018 , 03:29   Re: [Req] Gunxp Percentage with decimals
Reply With Quote #11

PHP Code:
new precentage[33



new 
currentXP get_user_xp(id// 
// and like 
precentage[id] = ((currentXP LEVELS[PlayerLevel[id]]) * 100
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-23-2018 , 09:15   Re: [Req] Gunxp Percentage with decimals
Reply With Quote #12

Quote:
Originally Posted by D3XT3R View Post
PHP Code:
new precentage[33



new 
currentXP get_user_xp(id// 
// and like 
precentage[id] = ((currentXP LEVELS[PlayerLevel[id]]) * 100
Have you ever heard of Float?
__________________
Relaxing is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 02-23-2018 , 13:53   Re: [Req] Gunxp Percentage with decimals
Reply With Quote #13

PHP Code:
new precentage[33]  
.  
.  
.  
new 
currentXP get_user_xp(id//  
precentage[id] = ((float(currentXP)/float(LEVELS[PlayerLevel[id]]))*100

Well this LEVELS[PlayerLevel[id] has no native its only in main plugin and its same as get_user_max_level(id)

Last edited by elmedin; 02-23-2018 at 13:54.
elmedin is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 02-24-2018 , 10:44   Re: [Req] Gunxp Percentage with decimals
Reply With Quote #14

Quote:
Originally Posted by elmedin View Post
PHP Code:
new precentage[33]  
.  
.  
.  
new 
currentXP get_user_xp(id//  
precentage[id] = ((float(currentXP)/float(LEVELS[PlayerLevel[id]]))*100

Well this LEVELS[PlayerLevel[id] has no native its only in main plugin and its same as get_user_max_level(id)
this would work
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 02-24-2018 , 12:11   Re: [Req] Gunxp Percentage with decimals
Reply With Quote #15

Look im using natives from include file to zombieplague.sma. Im not trying to edit the main file of gunxpmod
elmedin is offline
Reply



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 04:28.


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