Hello guys..
I get errors with "Surface.CreateFont".
This is what is got:
[CODE]surface.CreateFont( "Coolvetica", 19, 500, true, false, "ScoreboardPlayerNames" )[/CODE]
This is the error I get in console:
[CODE]Bad argument #2 to 'CreateFont' (table expected, got number)[/CODE]
What am I doing wrong? Any ideas?
It uses a table now
eg.
[lua]
surface.CreateFont( "Rank",
{
font = "Century Gothic Bold",
size = 25,
weight = 400,
antialias = true,
shadow = true
})
[/lua]
[QUOTE=PaellaPablo;37921918]It uses a table now
eg.
[lua]
surface.CreateFont( "Rank",
{
font = "Century Gothic Bold",
size = 25,
weight = 400,
antialias = true,
shadow = true
})
[/lua][/QUOTE]
Thanks :D. Do you think is will work: [CODE]surface.CreateFont( "Hint",
{
font = "Tahoma",
size = ScreenScale(8),
weight = 1000,
antialias = true,
shadow = false
})[/CODE]
If I use "size = ScreenScale(8),"
[QUOTE=EvilSystem;37922087]Thanks :D. Do you think is will work: [CODE]surface.CreateFont( "Hint",
{
font = "Tahoma",
size = ScreenScale(8),
weight = 1000,
antialias = true,
shadow = false
})[/CODE]
If I use "size = ScreenScale(8),"[/QUOTE]
That'll work.
[QUOTE=A Lost Sandwich;37922361]That'll work.[/QUOTE]
Okay. Thanks it's working now...
can somebody help me with this?
surface.CreateFont("Arial", 16, 400, true, false, "arial16")
surface.CreateFont("Arial", 16, 700, true, false, "arial16Bold")
surface.CreateFont("coolvetica", 72, 500, true, false, "coolvetica72")
surface.CreateFont("HL2Cross", 44, 430, true, false, "crosshair44")
surface.CreateFont("Impact", 32, 400, true, false, "impact32")
[highlight](User was banned for this post ("Necro bump" - SteveUK))[/highlight]
[QUOTE=kem008;43509662]can somebody help me with this?
surface.CreateFont("Arial", 16, 400, true, false, "arial16")
surface.CreateFont("Arial", 16, 700, true, false, "arial16Bold")
surface.CreateFont("coolvetica", 72, 500, true, false, "coolvetica72")
surface.CreateFont("HL2Cross", 44, 430, true, false, "crosshair44")
surface.CreateFont("Impact", 32, 400, true, false, "impact32")[/QUOTE]
Read the thread.
[QUOTE=kem008;43509662]can somebody help me with this?
surface.CreateFont("Arial", 16, 400, true, false, "arial16")
surface.CreateFont("Arial", 16, 700, true, false, "arial16Bold")
surface.CreateFont("coolvetica", 72, 500, true, false, "coolvetica72")
surface.CreateFont("HL2Cross", 44, 430, true, false, "crosshair44")
surface.CreateFont("Impact", 32, 400, true, false, "impact32")[/QUOTE]
No one can help you if you are too dumb to read the thread you post in.
Sorry, you need to Log In to post a reply to this thread.