[Help]: MySQL Plugin Don't work. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]: MySQL Plugin Don't work. (
/showthread.php?tid=329542)
[Help]: MySQL Plugin Don't work. -
DarkScripter - 29.03.2012
i'm making the simple register in MySQL.
The log of MySQL don't work.
Using EasyPHP and MySQL Plugin R7
Script
pawn Код:
#include a_samp
#include a_mysql
new
Result[200],
Query[200]
;
#pragma unused Result, Query
public OnFilterScriptInit()
{
mysql_connect("localhost", "root", "tsl", #);
mysql_debug(1);
if( mysql_ping( ) >= 1 )
{
print( "Connected" );
}
if(mysql_query("SELECT * FROM usuarios WHERE Nome='Adem'"))
{
printf("TRU");
}
return true;
}
public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
{
printf("%i | %s", errorid, error);
return true;
}
public OnFilterScriptExit()
{
mysql_close();
return true;
}
Re: [Help]: MySQL Plugin Don't work. -
DarkScripter - 31.03.2012
Bump,
I'm using EasyPHP (tested BlueG plugin and StrickenKid).