Forum

> > CS2D > Scripts > Money Hudtext Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Money Hudtext Help

7 replies
To the start Previous 1 Next To the start

old Money Hudtext Help

Dovahkin
User Off Offline

Quote
Guys i need help with money hudtext like!

>Money:9999$

and the money table.

thanks

old Re: Money Hudtext Help

Banaan
User Off Offline

Quote
That's included in the HUD by default mate. Why would you create an additional hudtxt for it?

1
hudtxt(0, ":>:Money:9999$", 10, 10, 0)
cs2d cmd hudtxt

There you go, a hudtxt that'll display
>Money:9999$

old Mate :(

Dovahkin
User Off Offline

Quote
There is a problem!

1
attempt to call global 'hudtext' (a nil value)

old Re: Money Hudtext Help

Yasday
User Off Offline

Quote
How about creating a hudtxt function?
If you didn't think of that, don't try to learn Lua.

old :S

Dovahkin
User Off Offline

Quote
That why im asking

old Re: Money Hudtext Help

TimeQuesT
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function hud(hudid,text,x,y)
if x== nil and y==nil then
parse ("hudtxt "..hudid.." \""..text.."\" 5 300")
else
parse ("hudtxt "..hudid.." \""..text.."\" "..x.." "..y)
end
end

function huds2(hudid,pid,text,x,y)
if x== nil and y==nil then
parse ("hudtxt2 "..pid.." "..hudid.." \""..text.."\" 5 300")
else
parse ("hudtxt2 "..pid.." "..hudid.." \""..text.."\" "..x.." "..y)
end
end

here i copied this from my ressource files...

old Re: Money Hudtext Help

Banaan
User Off Offline

Quote
firetounge41 has written
There is a problem!

1
attempt to call global 'hudtext' (a nil value)


Maybe because it isn't meant to be Lua at all. That's why I added the reference to CS2D.com's help page.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview