Change normal Query into Threaded Query
Howdy guys,
How would i go about in changing this query: to a Threaded Query! Code:
public Action:Cmd_Create(client, args) |
Re: Change normal Query into Threaded Query
Something like this.
PHP Code:
PHP Code:
The callback: PHP Code:
|
Re: Change normal Query into Threaded Query
Looking at your mysql statement. This would be useful to learn.
|
Re: Change normal Query into Threaded Query
zzz, don't know how to put multiple MYSQL statements into one threaded query :/
|
Re: Change normal Query into Threaded Query
You cant. You have to chain the queries through multiple callbacks.
|
Re: Change normal Query into Threaded Query
You can also use transactions to insert multiple queries at once.
|
Re: Change normal Query into Threaded Query
Cheers guys for all the help!
|
Threaded Query not keeping Information
Howdy guys,
A command is called: Cmd_CreateGang Code:
public Action:Cmd_CreateGang(client, args) The Highlighted bit of the Code is Whats next... The "Client" name/data/thing is not going into the next part of the code: Code:
public void SQL_CreateGang(Handle owner, Handle hndl, char[] error, int client) Anyone know an easy fix whilst keeping the Threaded Queries? |
Re: Threaded Query not keeping Information
The problem is that you're executing 3 queries on a single frame. In reality, only the last one goes through.
To fix this, you'll need to use Transactions. Here's the basic syntax: PHP Code:
PHP Code:
|
Re: Threaded Query not keeping Information
Quote:
Ill get to work... Do i need to state what TXN_Success and TXN_Failure? An example would be great... And then if i do this how do i run SQL_CreateGang :p |
All times are GMT -4. The time now is 21:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.