MySql not working need help
#7

Quote:
Originally Posted by BleverCastard
Посмотреть сообщение
Under OnGameModeInit, you will have something like:
pawn Код:
ConnectionHandle = mysql_connect(...);
You use ConnectionHandle as the connection handler. Please don't take this and dump it into your gamemode, it will be different.
still can't understand :

can you help me with an example

Код:
new Query[80];
	GetPlayerName(playerid,pName,24);
	format(Query,sizeof(Query),"SELECT `Username` FROM `Users` WHERE `Username` = '%s' LIMIT 1;",pName);
	mysql_query(Mysql,Query);
	mysql_store_result();
Reply


Messages In This Thread
MySql not working need help - by Nabster - 02.04.2015, 13:07
Re: MySql not working need help - by BroZeus - 02.04.2015, 13:10
Re: MySql not working need help - by Nabster - 02.04.2015, 13:15
Re: MySql not working need help - by X337 - 02.04.2015, 13:17
Re: MySql not working need help - by Nabster - 02.04.2015, 13:18
Re: MySql not working need help - by BleverCastard - 02.04.2015, 13:45
Re: MySql not working need help - by Nabster - 02.04.2015, 15:11
Re: MySql not working need help - by BleverCastard - 02.04.2015, 15:27
Re: MySql not working need help - by Nabster - 02.04.2015, 15:31
Re: MySql not working need help - by BleverCastard - 02.04.2015, 15:38

Forum Jump:


Users browsing this thread: 2 Guest(s)