Advertisement
Guest User

MySQL Blank Gamemode with Defines

a guest
Apr 26th, 2012
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.68 KB | None | 0 0
  1. /*          
  2.     Gamemode copyrights and information goes here...
  3. */
  4.  
  5. // =-=-=-=-=-= [ Includes ] =-=-=-=-=-=-=
  6. #include <a_samp>
  7. #include <a_mysql>
  8.  
  9. // =-=-=-=-=-= [ Defines ] =-=-=-=-=-=-=
  10. // SQL Defines
  11. #define SQL_HOST "localhost" // sql host
  12. #define SQL_USER "root" // sql username
  13. #define SQL_PASS "" // sql password
  14. #define SQL_DB "gamemode" // sql database name
  15.  
  16. // =-=-=-=-=-= [ Enums ] =-=-=-=-=-=-=
  17.  
  18. // =-=-=-=-=-= [ Vars ] =-=-=-=-=-=-=
  19.  
  20. // =-=-=-=-=-= [ Publics ] =-=-=-=-=-=-=
  21. public OnFilterScriptInit() {
  22.     printf("\nGamemode loaded successfully!\n");
  23.     mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
  24.     return 1;
  25. }
  26.  
  27. // =-=-=-=-=-= [ Stocks ] =-=-=-=-=-=-=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement