[Plugin] [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded...
#72

I'm making an admin script with SA MP MySQL plugin. The old version (v0.1), didn't work good (It crashed a lot), i thought the new version (v0.13) works better, but it isn't the best too. With the old version i could reload my script, but with the new version i can't do that. Is anybody know about a new plugin version or libmysql.dll, which working stable? What libmysql.dll is good? I copied that from mysql server folder next to samp-server.exe.
Example:
- I use this to load admin commands from database, and when i reload my fs it crashes
Код:
public OnFilterScriptInit() {
	#if defined SQL_HOST
		print("+------------------------+");
		print("|  mySQL Admin Script  |");
		print("|      by      |");
		print("|    [HuN]Peti    |");
		print("+------------------------+");
		samp_mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
		if(samp_mysql_ping()==0) {
			printf("[SQLAdmin] Connection to database is alive!");
		} else {
			printf("[SQLAdmin] Can't connect to database with host: %s", SQL_HOST);
		}
		samp_mysql_select_db(SQL_DB);
		NullAllVariables();
		printf("[SQLAdmin] Loading Admin Commands' accesses...");     <==
		LoadCmdAccesses();
		printf("[SQLAdmin] Creating Timers...");
		SetTimer("CheckPings", 5000, true);
		printf("[SQLAdmin] Creating Menus...");
		CreateMenus();
		printf("[SQLAdmin] Loading Configs...");
		LoadConfigs();
		printf("[SQLAdmin] Loading Forbidden Names...");
		LoadForbidNames();
	#endif
}
new CmdAccesses[MAX_CMDS][cmdEnum];
stock LoadCmdAccesses() {
	new line[256], field[128], i=0;
	CheckSQLConnection();
	samp_mysql_query("SELECT * FROM cmds"); // Fields: Level, CMD
	samp_mysql_store_result();
	while(samp_mysql_fetch_row(line)) {
		samp_mysql_strtok(field, "|", line);
		CmdAccesses[i][LvLNeed] = strval(field);
		samp_mysql_strtok(field, "|", "");
		format(CmdAccesses[i][CMD], 256, field);
		i++;
	}
	samp_mysql_free_result();
	return false;
}
Please, help me!

Sorry, for my bad english, but i'm from Hungary .
Reply


Messages In This Thread
[REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by ADreNaLiNe-DJ - 16.07.2007, 15:41
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 16.07.2007, 15:51
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 16.07.2007, 16:16
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by d.wine - 16.07.2007, 16:56
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 16.07.2007, 16:58
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by d.wine - 16.07.2007, 18:30
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by Mike - 16.07.2007, 20:21
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 16.07.2007, 20:55
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by Matite - 17.07.2007, 09:08
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by boylett - 17.07.2007, 13:57
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by courage - 17.07.2007, 15:13
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 17.07.2007, 17:47
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 17.07.2007, 17:54
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by boylett - 17.07.2007, 19:18
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 17.07.2007, 19:58
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by boylett - 17.07.2007, 20:53
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 17.07.2007, 20:56
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by boylett - 17.07.2007, 21:02
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by fluid - 17.07.2007, 21:13
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 17.07.2007, 21:56
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by fluid - 17.07.2007, 22:52
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by fluid - 18.07.2007, 06:07
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by fluid - 18.07.2007, 06:30
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by ADreNaLiNe-DJ - 18.07.2007, 08:10
Re: [REL] SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-16-2007) - by fluid - 18.07.2007, 09:12
Re: [REL]SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 18.07.2007, 13:26
Re: [REL]SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-18-2007 => see 1st p - by fluid - 18.07.2007, 15:33
Re: [REL]SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 18.07.2007, 15:55
Re: [REL]SAMP-MySQL and SAMP-MYSQL-lite v0.11 (last edit 07-18-2007 => see 1st p - by fluid - 18.07.2007, 16:42
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 18.07.2007, 18:04
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by courage - 18.07.2007, 18:18
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 18.07.2007, 18:23
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by fluid - 18.07.2007, 18:57
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 18.07.2007, 19:44
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by fluid - 19.07.2007, 00:39
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 19.07.2007, 05:47
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by fluid - 19.07.2007, 07:11
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 19.07.2007, 08:53
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by 50p - 19.07.2007, 11:46
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 19.07.2007, 11:51
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by fluid - 06.09.2007, 20:48
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by visagalis - 07.09.2007, 14:03
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 07.09.2007, 16:00
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by visagalis - 07.09.2007, 18:35
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by kok - 08.09.2007, 09:22
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 08.09.2007, 17:24
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 08.09.2007, 17:29
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by visagalis - 08.09.2007, 19:51
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by Pleite - 14.09.2007, 15:38
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 17.09.2007, 19:26
Problem with Server and the plugin - by Tempo - 23.09.2007, 14:08
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 24.09.2007, 16:18
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by killer57 - 25.09.2007, 22:14
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by fluid - 26.09.2007, 19:31
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by Tony_Columbo - 03.10.2007, 04:28
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 05.10.2007, 15:44
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by thisforumlags - 09.10.2007, 02:28
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by ADreNaLiNe-DJ - 10.10.2007, 22:35
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by TheSh@rk - 25.10.2007, 18:30
Re: [REL]SAMP-MySQL v0.12 (last edit 07-18-2007 => see 1st post) - by IJzerenRita - 25.10.2007, 18:38
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by elmenor25 - 26.12.2008, 01:10
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by asdd - 26.12.2008, 04:10
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by drV - 26.12.2008, 08:25
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by Bardokas - 26.12.2008, 09:26
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by drV - 26.12.2008, 09:53
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by Bardokas - 26.12.2008, 18:06
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by [M2S]moe - 26.12.2008, 18:40
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by Bardokas - 26.12.2008, 18:54
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by drV - 26.12.2008, 21:03
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by drV - 26.12.2008, 21:09
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by chenza - 27.12.2008, 05:25
Please, help me! - by joco96 - 28.12.2008, 12:10
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by Bardokas - 28.12.2008, 12:12
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by joco96 - 28.12.2008, 12:18
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by Bardokas - 28.12.2008, 12:53
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by joco96 - 28.12.2008, 13:39
[REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by [NoV]LaZ - 28.12.2008, 19:00
[REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by joco96 - 29.12.2008, 09:59
Re: [REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by chenza - 30.12.2008, 14:04
[REL]SAMP-MySQL v0.13 - Windows, Ubuntu and CentOs supported !!! - by [NoV]LaZ - 01.01.2009, 02:03
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Dreftas - 02.11.2009, 14:43
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by SoeH - 03.11.2009, 11:52
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by MenaceX^ - 03.11.2009, 12:14
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by SoeH - 03.11.2009, 12:26
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by SE7ENGX - 03.11.2009, 17:41
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Joe Staff - 03.11.2009, 18:11
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by mprofitt - 03.11.2009, 18:32
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Redgie - 04.11.2009, 18:26
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by MenaceX^ - 04.11.2009, 18:55
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Redgie - 04.11.2009, 22:15
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Tirus - 02.04.2010, 10:54
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by MenaceX^ - 02.04.2010, 12:33
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by minimicro - 02.04.2010, 14:07
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Kevinterra - 15.04.2010, 14:07
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Hiddos - 15.04.2010, 19:43
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Victor - 15.04.2010, 19:53
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Sergei - 16.04.2010, 13:14
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Dreftas - 19.04.2010, 11:48
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by chenza - 24.04.2010, 14:40
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Mlody626 - 26.05.2010, 17:31
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Mlody626 - 26.05.2010, 17:31
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Burridge - 26.05.2010, 17:33
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Mlody626 - 26.05.2010, 17:35
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Burridge - 26.05.2010, 17:36
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by nemesis- - 26.05.2010, 20:12
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by StrickenKid - 26.05.2010, 20:42
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by gcw - 21.06.2010, 19:09
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Sergei - 21.06.2010, 19:27
Respuesta: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by DarkChildren - 10.07.2010, 17:05
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Ernis456 - 12.07.2010, 13:53
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Blacklite - 13.07.2010, 21:57
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Sergei - 13.07.2010, 22:12
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by MemoX - 01.08.2010, 00:29
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Septimus314 - 01.08.2010, 19:03
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Cank - 04.08.2010, 20:27
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Cameltoe - 04.08.2010, 21:34
Re: [REL]SAMP-MySQL v0.15 - SAMP 0.3 supported!!! corrected version uploaded... - by Cank - 04.08.2010, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)