mysql "AND" crashed my server.
#1

fixed.
Reply
#2

up..
Reply
#3

"@updatePlayerSkill"

Try change the unction you call ?
Reply
#4

Код:
new mySQL = -1;

connectMysql() {
	mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML);
	mySQL = mysql_connect("127.0.0.1", "root", "sampdata", "root");
	return (mysql_errno() != 0) ? false :true;
}

main() {
	connectMysql();
	mysql_tquery(mySQL, "SELECT * FROM `skills` WHERE `id` ='0' and `skillid` = '0'  LIMIT 1", "@updatePlayerSkill", "dddd", a, b, c, d);
}

forward @updatePlayerSkill(const a, const b, const c ,const d);
@updatePlayerSkill(const a, const b, const c ,const d) {
	new e = a + b + c + d;
	printf("e = %d", e);
}
I tested this code and run with no creash.
I think the problem is var or something...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)