Raised This Month: $ Target: $400
 0% 

cs_get_user_money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-30-2005 , 07:33   cs_get_user_money
Reply With Quote #1

I have some problems with the cs_get_user_money function...

Code:
public show_money(id) {   new uMoney = cs_get_user_money( id )   set_hudmessage(40,100,50, 0.20, 0.30, 2, 0.05, 5.0, 0.01, 0.1, 5)   show_hudmessage(id,"Curretly money: %i",uMoney) }

There aint happening anything when i put that function in my script. But it works fine when i dont have it in it.
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
VarmVaffel
Member
Join Date: Feb 2005
Location: Norway
Old 03-30-2005 , 08:43  
Reply With Quote #2

well, then maby you haven't included the cstrike module to your server, cos I can't see anything wrong with the code.

( But remember, I'm no expert )
VarmVaffel is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-30-2005 , 09:19  
Reply With Quote #3

All the necceceary modules are loaded...
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
VarmVaffel
Member
Join Date: Feb 2005
Location: Norway
Old 03-30-2005 , 09:42  
Reply With Quote #4

maby u could try to format the string first using this:

Code:
public show_money(id) {   new uMoney = cs_get_user_money( id )   new MoneyString[ 32 ]   format( MoneyString, 31, "Curretly money: %i", uMoney )   set_hudmessage(40,100,50, 0.20, 0.30, 2, 0.05, 5.0, 0.01, 0.1, 5)   show_hudmessage(id, MoneyString) }
VarmVaffel is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-30-2005 , 10:40  
Reply With Quote #5

Well that dosent work too!
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-30-2005 , 19:38  
Reply With Quote #6

whats the problem u getting when u run it?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-30-2005 , 23:05  
Reply With Quote #7

Is the channel 5 already being used?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-30-2005 , 23:51  
Reply With Quote #8

Only 4 channels, eh?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
KyleD
Member
Join Date: Mar 2005
Location: Anchorage, AK
Old 03-31-2005 , 00:37  
Reply With Quote #9

Yes, I believe there is only 4 channels.
__________________
KyleD is offline
Send a message via MSN to KyleD
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 04-01-2005 , 12:21  
Reply With Quote #10

It isent something with the channel, it just returing bad load when i write 'cs_get_user_money(id)' the i get bad load, there isent anything wrong with the compiling...
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
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 09:50.


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