AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   More than 16000 $$ Error? (https://forums.alliedmods.net/showthread.php?t=82310)

fang 12-20-2008 23:04

More than 16000 $$ Error?
 
When I'm using a more than $16000 plugin and I try to use my buy menu. I set the charge to be $20000
Ex.
Code:

new money = cs_get_user_money(id)
    new cost = get_pcvar_num(pcvars[i])
   
    if(money<cost)
    {
        client_print(id, print_chat, "[ZH-Shop] You Don't Have Enough Money ($%i Needed).", cost)
        return PLUGIN_HANDLED
    }

*Note this is not the full code*
When I have $25000, it keeps sending me the error message. But when I select something to purchase that is $16000 or under it works. :|

Exolent[jNr] 12-20-2008 23:22

Re: More than 16000 $$ Error?
 
Because the other plugin doesn't work that way.
It saves your money in the plugin, not changes the game to let you have more money.
Use a dynamic native to retrieve player money from that plugin, not the cs_get_user_money().

Emp` 12-21-2008 01:08

Re: More than 16000 $$ Error?
 
Quote:

Originally Posted by Ramono (Post 206335)
HOWTO MAKE OTHER PLUGINS COMPATIBLE WITH THIS PLUGIN (Do Not edit unlimited_money.sma):
6. Replace all cs_set_user_money with cs_set_user_money_ul
7. Replace all cs_get_user_money with cs_get_user_money_ul


fang 12-21-2008 12:29

Re: More than 16000 $$ Error?
 
:oops: stupid me. Thanks emp


All times are GMT -4. The time now is 09:17.

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