Help mysql r39-5 | +rep
#1

Hello.

i want make this in mysql r39-5 , because in my gm i use mysql r39-5, any one can help me please


when i compile i get this error msg
Код:
error 017: undefined symbol "handle"
and me i use mysql r39-5
code
Код:
CMD:unbanall(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 5)
	{
		new text[500];
		//new re[500];

 		mysql_format (handle, text, sizeof ( text ), "UPDATE ban SET Active = '0''");
		mysql_query(handle, text);
		SendClientMessage(playerid, COLOR_LIGHTRED, "Update bans!");
	}
	return 1;
}
Код:
CMD:uninviteall(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 8)
	{
		new text[500];
		//new re[500];
		for(new i=0; i< 3000; i++)
	 	{
	    	mysql_format (handle, text, sizeof ( text ), "UPDATE users SET Member = '0' AND Rank ='0' AND Model ='24'");
	    	mysql_query(handle, text);
		}
		SendClientMessage(playerid, COLOR_LIGHTRED, "Update!");
	}
	return 1;
}
Reply
#2

is "handle" defined as global?

new handle;

OnGameModeInit
handle = mysql_connect(...);
Reply
#3

Quote:
Originally Posted by itsCody
Посмотреть сообщение
is "handle" defined as global?

new handle;

OnGameModeInit
handle = mysql_connect(...);
No,
Код:
SQL = mysql_connect
Reply
#4

any errors, warnings, or such?
Reply
#5

Код:
mysql_format (SQL, ..
mysql_query(SQL, ..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)