SA-MP Forums Archive
[Help]MySQL[URGENT] - 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[URGENT] (/showthread.php?tid=498090)



[Help]MySQL[URGENT] - Mriss - 01.03.2014

Heres my script, could someone help me by finishing it off?
pawn Код:
/*          
    Copyright Brad Nunchr ©. All Rights Reserved.
    Leaking of this
*/


// =-=-=-=-=-= [ Includes ] =-=-=-=-=-=-=
#include <a_samp>
#include <a_mysql>

// =-=-=-=-=-= [ Defines ] =-=-=-=-=-=-=
// SQL Defines
#define SQL_HOST "localhost" // sql host
#define SQL_USER "root" // sql username
#define SQL_PASS "" // sql password
#define SQL_DB "gamemode" // sql database name

// =-=-=-=-=-= [ Enums ] =-=-=-=-=-=-=

// =-=-=-=-=-= [ Vars ] =-=-=-=-=-=-=

// =-=-=-=-=-= [ Publics ] =-=-=-=-=-=-=
public OnFilterScriptInit() {
    printf("\nGamemode loaded successfully!\n");
    mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    return 1;
}

// =-=-=-=-=-= [ Stocks ] =-=-=-=-=-=-=
I want it to save enums and the tables on my database will be:
Username
Psssword
Admin
Score
Vip
Trusted
HD