MySQL problиm
#1

Hello,

I created a verification script for a ban system, but it's not working !

Код:
format(string, sizeof(string), "SELECT * FROM membres_bans WHERE membreBanID = %d AND timeBanFin < %d AND timeBanFin > 0", Joueur[playerid][pIdSQL], gettime());
mysql_query(string);
Here, the request was executed and there is no problem then :

CMySQLHandler::Query(SELECT * FROM membres_bans WHERE membreBanID = 3 AND timeBanFin < 1367230629 AND timeBanFin > 0) - Successfully executed.

But from this point that's not working :
http://pastebin.com/ku33KdYW

And I'm not finding this request in the Debug.txt !
Can you help me?

Thank you.
Reply
#2

Help please
Reply
#3

Assuming this is for 0.3

You need to thread your queries, also, mysql_query has changed to mysql_function_query.

Refer to this:
https://sampforum.blast.hk/showthread.php?tid=337810
Reply
#4

I don't understand. Can you give me a example ?
Reply
#5

pawn Код:
mysql_function_query(dbHandle, "SELECT * FROM players", true, "OnPlayerListLoad", "");

forward OnPlayerListLoad();
public OnPlayerListLoad() {

}
Reply
#6

Can you give a example for vehicle (while) ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)