Raised This Month: $ Target: $400
 0% 

Xp problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kiarronis
Junior Member
Join Date: Jan 2022
Location: Argentina
Old 01-18-2022 , 22:14   Re: Xp problem
Reply With Quote #12

Quote:
Originally Posted by bigdaddy424 View Post
Code:
//---------------------------------------------------------------------------------------------- //native sh_add_kill_xp(id, victim) public _sh_add_kill_xp() {     new id = get_param(1)     new victim = get_param(2)     // Stupid check - but checking prevents crashes     if ( id < 1 || id > gServersMaxPlayers || victim < 1 || victim > gServersMaxPlayers ) return     new float: multiplier = str_to_float(fmt("%d.%02d", (gPlayerLevel[id] / 100) + 1, gPlayerLevel[id] % 100))     localAddXP(id,floatround(multiplier * gXPGiven[gPlayerLevel[victim]]))     displayPowers(id, false) }
And the another code? Because doesn't work

Last edited by kiarronis; 01-18-2022 at 23:17.
kiarronis is offline
 



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 11:30.


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