AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to display the remaining exp? (https://forums.alliedmods.net/showthread.php?t=189697)

kendra 07-10-2012 01:44

how to display the remaining exp?
 
Code:

print_chatColor(id, "\g[SuperHeroChile]\n Nick: \t%s\n, EXP: \g%d/%d\n, LEVEL: \g%d\n", name, sh_get_user_xp(id),NATIVE(?) , sh_get_user_lvl(id))
which is the native experience to the next level remaining?

when I put the sh_get_lvl_xp(id) is bug
Code:

[SuperHeroChile] Nick: bonini;p, EXP: 524256/800, LEVEL: 31

Napoleon_be 07-10-2012 06:23

Re: how to display the remaining exp?
 
This is how i did it in my XP Mode: ColorChat(id, GREEN, "[%s]^x01 Experience Till level %i:^x03 %i", szPrefix, iPlayerLevel[id] + 1, szExperience[iPlayerLevel[id] + 1] - iPlayerXP[id])


All times are GMT -4. The time now is 15:21.

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