Can someone explain to me how this code in cl_targetid.lua gives false as result
[CODE]
function GM:HUDDrawTargetID()
...
local hint = (not minimal) and (ent.TargetIDHint or ClassHint[cls])
local query = "SELECT * FROM in_spec_dm"
result = sql.Query(query)
//result is false
...
[/CODE]
[IMG]http://s3.postimg.org/x93hn9aub/Untitled2.jpg[/IMG]
[IMG]http://s10.postimg.org/qj8hcomuh/Untitled.jpg[/IMG]
And, another point if you move to MySQL. Queries will take time, so you can't just use a return because other code will have executed before the result is returned and when it is returned it has nowhere to go so it tosses it, this is why callbacks are used for MySQL / queries.
With SQLite, you will have time to receive a return as Matt says, but you're querying the wrong DB, or the data doesn't exist ( rows need to exist in tables for a result to be returned ).
well this was my last idea, i tryed with GetNWBool, IsSpec(), IsGhost() but all of them return nil for some reason in cl_targetid.lua didint try GetPData but that is also sqlite
Solved, one of addons was overriding GM:HUDDrawTargetID and thats why my code didint work :D
[QUOTE=GreenGold;46651086]Solved, one of addons was overriding GM:HUDDrawTargetID and thats why my code didint work :D[/QUOTE]
I really, really hope you're not using the code in the OP.
[QUOTE=Handsome Matt;46651974]Expect FPS drops of 90% in custom TTT servers now :)[/QUOTE]
Is overriding of draw functions causing fps lag?
Edit:
Didint use sqllite used nwbool
cache
it
you
nerd
Sorry, you need to Log In to post a reply to this thread.