Mysql (BlueG R5)
#1

When i load my server up to test if i can connect to my defined var's it shows me and error

pawn Код:
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team

[11:15:46] filterscripts = ""  (string)
[11:15:46]
[11:15:46] Server Plugins
[11:15:46] --------------
[11:15:46]  Loading plugin: mysql
[11:15:46]

  > MySQL plugin R5 successfully loaded.

[11:15:46]   Loaded.
[11:15:46]  Loading plugin: crashdetect
[11:15:46]   crashdetect v4.8.5 is OK.
[11:15:46]   Loaded.
[11:15:46]  Loading plugin: sscanf
[11:15:46]

[11:15:46]  ===============================

[11:15:46]       sscanf plugin loaded.    

[11:15:46]    (c) 2009 Alex "******" Cole

[11:15:46]    0.3d-R2 800 Players "dnee"

[11:15:46]  ===============================

[11:15:46] sscanf error: The current build ONLY supports 0.3d
[11:15:46]   Loaded.
[11:15:46]  Loaded 3 plugins.

[11:15:46]
[11:15:46] Filterscripts
[11:15:46] ---------------
[11:15:46]   Loaded 0 filterscripts.

[11:15:46] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[11:15:46] Script[gamemodes/mysql.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[11:15:46] Number of vehicle models: 0
Script(Not even %1 finished)
pawn Код:
#include <a_samp>
#include <a_mysql>
#include <zcmd>
#include <sscanf2>


/* Color Defines */



/* Mysql Defines */

#define mysql_host "127.0.0.1" //Has to be a string
#define mysql_user "root" //Has to be a string
#define mysql_password "" //There is none for wamp unless you set one.
#define mysql_database "sa-mp" //Has to be a string

/* Dialog Defines */



/* Misc Defines */


public OnGameModeInit()
{
    mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
    mysql_query("CREATE TABLE IF NOT EXISTS registredusers(Name VARCHAR(265), Pass VARCHAR(265), Level INT(100), Hand_Cash INT(1000), Bank_Cash INT(1000), IP VARCHAR(16) )");
    // Don't use these lines if it's a filterscript
    SetGameModeText("Base Mysql");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}
Reply
#2

make sure you have
pawn Код:
main( ) { }
if you are using it as gamemode!
Reply
#3

And boom goes the Catalyst , Thanks i forgot to put that bake in
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)