18.08.2018, 15:39
Today I learned - Share your newly found knowledge!
19.08.2018, 07:47
25.08.2018, 00:40
Today i learned SQLite checking with a timer
basicly what i did is
try by testing it by movind the scriptfiles in e seprete dir end CTRL-Z to return scriptfiles to the previous directory and if the server console detects the dir/scriptfiles it will run the database without no problem
basicly what i did is
Код:
#include [UNHANDLED-TAG=a_samp] #include [UNHANDLED-TAG=zcmd] #include [UNHANDLED-TAG=sscanf2][/UNHANDLED-TAG=sscanf2][/UNHANDLED-TAG=zcmd][/UNHANDLED-TAG=a_samp] //Created a db specifier and a timer new DB:handle; new handletimer = 0; main() { } ///****************** * Forwards *//********************/ forward SQLiteReboot(DB:db); // forwarded a callback for the specified function public OnGameModeInit() { if((handle = db_open(“server.db3”)) == DB:0) { //made the temporary timer to call from a callback for each 3 seconds // if its not connecting to restart or exit the gamemode handletimer = SetTimerEx(“SQLiteReboot”, 3000, true, “d”, _:handle); } else { KillTimer(handletimer); } return 1; } public OnGameModeExit() { if(handle) db_close(handle); return 1; } public SQLiteReboot(DB:db) { // restart or exit the gamemode and print the database warning GameModeExit(); printf(“[server]: cannot find handle %d”, _:handle); return _:handle; }
04.01.2019, 23:41
04.01.2019, 23:43
How do I delete someone else's post.
05.01.2019, 00:42
05.01.2019, 00:55
06.01.2019, 06:40
18.01.2019, 09:55
Today i learned how to make include like Emmet_
but that code is messed up
You can look in here:
https://github.com/B3x7k/OnPlayerRestoreHack
but that code is messed up
You can look in here:
https://github.com/B3x7k/OnPlayerRestoreHack
18.01.2019, 10:38
That converting from one version of MySQL to an other is really annoying.
03.06.2020, 09:57
Today I learned I can use my Spotify Music in GTA SA, by creating a shortcut of the Spotify Offline Library and pasting it into the User Tracks Area in documents, so it'll update if I add more music to be downloaded in spotify, all I have to do is set Automatic Scan to On.
06.08.2020, 13:57
You can't Referance an Array
07.08.2020, 06:52
11.08.2020, 04:11
TIL that you can use %<int> to tabulate (/t). Currently seeing what else you can use it on. Seems it adds spaces per int (%06s will add 6, %12s will add 12 etc).
pawn Code:
if(strcmp(cmd, "/test", true) == 0) {
new string[24], someVar[6] = "SA:MP";
format(string, sizeof(string), "%06s %s", "", someVar);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Tu Madre", string, ":)", ":(");
return 1;
}
« Next Oldest | Next Newest »
Users browsing this thread: 18 Guest(s)