![]() |
Show Number Function
I was bored .. again ;)
and I decided to make a little function to help some people. I might enhance it if people like it.. it shows any number anywhere on the screen.. the only problem is that the number cant be bigger then 9999999, else the variable becomes a long and messes up x.x bare with me since I made this in only like 15 minutes, so it might have some bugs.. oh and I think some1 had one before this .. but I tried and it didnt work well so here is one that works well. here is the function: NPC Code: now ill explain how to use it. anywhere in your code you can call it , in a timeout, if player enters. whatever. Ill explain a if playerenters one .. NPC Code: Enjoy ;) and please tell me if you find any bugs. oh and i might also include the chars : / so if you need to do dates or something. btw this is extracted out of state.png |
fun. You could also do:
NPC Code: |
Quote:
your way uses normal font files my way uses the sprite.png which is prettier. but still props to u^^ good idea tho I could make it so u can choose which way and also you can change the font and size and all that stuff |
Actually, I think if you just use arial bold it looks the same. All you need to remember is that the font on sprites.png is made of white arial bold, with blue arial bold underneath, with an offset of (1,1) on the blue text. You could probably use layers 5 and 6 to separate the two...
|
Quote:
|
Quote:
|
erm 2 questions..
any1 want me to update this and make more stuff avaible ? and also what happens if your using timevar and it becomes a really high number. does that mean you cant make date/time nemore since it becomes a long or what ?? |
| All times are GMT +2. The time now is 01:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.