01.03.2014, 23:45
Heres my script, could someone help me by finishing it off?
I want it to save enums and the tables on my database will be:
Username
Psssword
Admin
Score
Vip
Trusted
HD
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 ] =-=-=-=-=-=-=
Username
Psssword
Admin
Score
Vip
Trusted
HD