[Help]: MySQL Plugin Don't work.
#1

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;
}
Reply
#2

Bump,
I'm using EasyPHP (tested BlueG plugin and StrickenKid).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)