HELP MySQL
#1

Hello!,

I have a problem with this mysql request. The query is right, because I have tested it in php.
I have changed the query a lot, for example I have added an end token ";" ... but everytime my server crashes.

Maybe you can tell me my mistake, thanks!

I use a_sampmysql...

Код:
format(samp_mysql_query4, sizeof(samp_mysql_query4), "SELECT id FROM user WHERE name = '%s'",playrname);
samp_mysql_query(samp_mysql_query4);
samp_mysql_store_result();


if(samp_mysql_num_rows() != 0)
{            
	gPlayerAccount[playerid] = 1;
} else {
	gPlayerAccount[playerid] = 0;
}

samp_mysql_free_result();
Yes, I have defined mysql_query4...


THANK YOU... Greetings from Germany .. MY
Reply
#2

Debug it, it's hard to know by looking this code, it's probably failed to select from the mysql.
Reply
#3

i have found the mistake -.- i am so stupid... no comment where the mistake was .. .. this mistake is to stupid

i am sorry...
Reply
#4

Where was your mistake?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)