SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 29/03/2012, 04:04 AM   #1
DarkScripter
Huge Clucker
 
DarkScripter's Avatar
 
Join Date: Jan 2012
Posts: 311
Reputation: 57
Default [Help]: MySQL Plugin Don't work.

i'm making the simple register in MySQL.
The log of MySQL don't work.


Using EasyPHP and MySQL Plugin R7

Script
pawn Code:
#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;
}
__________________
Quote:
Originally Posted by SpiritEvil
pawn Code:
if (strcmp("/q", cmdtext, true, 10) == 0 || strcmp("/quit", cmdtext, true, 10) == 0)
    {
        new str[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(str, sizeof(str), "%s has been permanently banned from the server! Reason: One does not simply quit from my server!!", name);
        SendClientMessageToAll(COL_RED, str);
        Ban(playerid);
        return 1;
    }
DarkScripter is offline   Reply With Quote
Old 31/03/2012, 08:35 PM   #2
DarkScripter
Huge Clucker
 
DarkScripter's Avatar
 
Join Date: Jan 2012
Posts: 311
Reputation: 57
Default Re: [Help]: MySQL Plugin Don't work.

Bump,
I'm using EasyPHP (tested BlueG plugin and StrickenKid).
DarkScripter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Plugin R5 plugin problem dud Scripting Help 12 05/12/2011 07:28 PM
Strikens Mysql vs BlueG's Mysql plugin PrawkC Scripting Help 4 30/09/2011 10:30 AM
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 02:37 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 03:32 PM


All times are GMT. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.