Raised This Month: $ Target: $400
 0% 

Negative Sign on Needed Amount


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 07-25-2010 , 20:34   Negative Sign on Needed Amount
Reply With Quote #1

This is really bothering me I have a XP Mod and Im trying to set up how much XP they need to get an item and this is how i have it set up and for some reason this damn negative sign shows up

PHP Code:
CvarHere register_cvar("blah""500" 
PHP Code:
new exp points[id]
new 
cost get_pcvar_numCvarHere )
new 
left exp cost;
 
if( 
exp cost )
{
    
ColorChatidGREEN"[%s]^x01 You need %i more XP to buy this item!"TITLEleft);
    return 
PLUGIN_HANDLED;
   }
  } 
Well heres what i mean This is what will show up
You need -200 more XP to buy this item, lets just say it cost 500 and i have 300 it says i need -200 more
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek 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 00:18.


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