AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_get_user_money (https://forums.alliedmods.net/showthread.php?t=11868)

stigma 03-30-2005 07:33

cs_get_user_money
 
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.

VarmVaffel 03-30-2005 08:43

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 :P )

stigma 03-30-2005 09:19

All the necceceary modules are loaded... :?

VarmVaffel 03-30-2005 09:42

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) }

stigma 03-30-2005 10:40

Well that dosent work too!

TotalNoobScripter 03-30-2005 19:38

whats the problem u getting when u run it?

XxAvalanchexX 03-30-2005 23:05

Is the channel 5 already being used?

v3x 03-30-2005 23:51

Only 4 channels, eh?

KyleD 03-31-2005 00:37

Yes, I believe there is only 4 channels.

stigma 04-01-2005 12:21

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...


All times are GMT -4. The time now is 10:00.

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