Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_mysql>
- main()
- {
- print("System started\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- mysql_debug(1);
- mysql_connect("localhost","ni3141_1_DB","ni3141_1_DB","aGml2P6U");
- new query[256], getter[256];
- format(query, 256, "SELECT `%s` FROM `%s` WHERE `%s` = '%d'", "Jackpot", "Diverses", "ID", 1);
- mysql_query(query, -1, -1);
- mysql_store_result();
- mysql_fetch_row(getter);
- printf("Row: %s\n", getter);
- mysql_free_result();
- new value = strval(getter);
- printf("Jackpot %d\n", value);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment