One thing with SQLx
So i'm trying out SQLx at the moment, so i used Hawk552's example of that 'Core' thingy (His last example on the topic).
So, i got an function like this: Code:
Code:
Also, I think i should have an 'return (something)' in 'public hrp_is_job' to return the value of the job, but what should i return? Any help would be nice :/ |
Re: One thing with SQLx
Your usage of SQL_ThreadQuery is wrong. You can't format string in SQL_ThreadQuery. You have to do it before.
Code:
Code:
|
Re: One thing with SQLx
Quote:
Though still, the 'if(!hrp_is_job(id,authid) >= 2 && !hrp_is_job(id,authid) <= 11)' doesn't work, but how should i be doing it then? |
Re: One thing with SQLx
SQL_ThreadQuery works in asynchronous. So you should be storing the players job into an array or something.
Also your not retrieving the data from the column. Code:
I don't know what plugin this is for but it look like it a TS plugin. You need to recode this plugin around to work in Asynchronous if you are going to SQL_ThreadQuery. |
Re: One thing with SQLx
Hmm...
Code:
Code:
So i guess that means something wrong with the (id,pid,2) ? |
Re: One thing with SQLx
Code:
Sorry for the lack of indenting. Try to pass your id through data, and make StoreSomeWhere an array. change this: Code:
to this: Code:
|
Re: One thing with SQLx
Fixed it already on my own, thanks anyways :)
|
| All times are GMT -4. The time now is 22:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.