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


Messages In This Thread
HELP MySQL - by MiniYoda - 16.06.2009, 06:13
Re: HELP MySQL - by MenaceX^ - 16.06.2009, 07:36
Re: HELP MySQL - by MiniYoda - 16.06.2009, 08:01
Re: HELP MySQL - by MenaceX^ - 16.06.2009, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)