the error
[ERROR] addons/darkrpmodification/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:763: unexpected symbol near ','
1. unknown - addons/darkrpmodification/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:0
code on line any ideas? 763
draw.DrawTex ("listen_up","Listen up:"), "GModToolName", ScrW() / 2 + 10, 10, Color(255, 255, 255, AdminMessageAlpha), 1)
[editline]24th December 2016[/editline]
please help..
this is now starting to effect my hud..
the code runs fine.. but when its not running it says unexpected symbol near ','
when /admintellall is ran.. this code runs and it runs fine.. but it makes the hud remove itself . untill the admintellal is finished..
1. I'm assuming you're trying to use draw.DrawText, because draw.DrawTex isn't a thing by default.
2. You've got a random paren in your arguments, friendo.
3. You really should use enum names rather than their numeric equivalents.
4. You've got too many arguments. Not sure what "listen_up" is supposed to be, but the second argument is supposed to be the font name so I guess it's gonna have to go.
5. I assume you want to concatenate a message with this...
So, I'm assuming this is what you're going for:
[lua]
local admin_message = "bleh"
draw.DrawText("Listen up: "..admin_message, "GModToolName", ScrW() / 2 + 10, 10, Color(255, 255, 255, AdminMessageAlpha), TEXT_ALIGN_CENTER)
[/lua]
i will try this
and i still can do /admintellall ?
[editline]24th December 2016[/editline]
[ERROR] addons/darkrpmodification/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:763: attempt to concatenate global 'admin_message' (a nil value)
1. v - addons/darkrpmodification/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:763
2. unknown - lua/includes/modules/hook.lua:84
[editline]24th December 2016[/editline]
got it working
thanks buddy
Sorry, you need to Log In to post a reply to this thread.