08.08.2012, 18:52
[Plugin] [REL] MySQL Plugin (Now on github!)
11.08.2012, 10:30
Hello. Please a link to the file libmysqlclient.so.16
Quote:
[13:33:54] Loaded. [13:33:54] Loading plugin: libmysqlclient.so.16 [13:33:54] Failed (plugins/libmysqlclient.so.16: cannot open shared object file: No such file or directory) [13:33:54] Loaded 2 plugins. |
11.08.2012, 11:21
Debian 6 guide here: http://forum.sa-mp.com/showthread.ph...66#post1741866
11.08.2012, 11:56
Sorry of it was stated already,but is it possible to get R7. For centos?
11.08.2012, 13:49
Quote:
Sorry of it was stated already,but is it possible to get R7. For centos?
|
13.08.2012, 12:53
Is there an way to execute stored procedures?
13.08.2012, 14:54
On windows I'm getting alot of 'bad heap releases' from the latest crashdetect..
13.08.2012, 16:07
Quote:
[13 16:14:18]Error id 2013: Lost connection to MySQL server during query('SELECT 1 FROM `Account` WHERE `Xp`>0 AND `IP`='SOME_IP_HERE'') |
In R6, I could fix it using this:
pawn Code:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{
if(errorid==CR_SERVER_LOST) mysql_query(query);
}
Any ideas on how to fix this?
Note: I have mutex disabled, because I think it caused some random crashes earlier.
Note2: I connect to mysql using the external IP, not 127.0.0.1. That way, I can test my gamemode on my local pc.
13.08.2012, 20:31
So right know I've got this code:
This query, however, fails for some odd reason. When I check the logs for the printed string, it gives me the correct data:
In the MySQL logs, however, it shows me this:
I have no idea why it does this. So far, I've noticed that the 'is' part directs back to the format parameter in mysql_function_query.
Could anyone help me out on this one?
pawn Code:
new str[128];
format(str, sizeof str, "SELECT player_password FROM players WHERE player_name = '%s' LIMIT 1", p_info[playerid][player_name]);
printf("query: %s", str);
mysql_function_query(mysql_conn, str, true, "mysql_logreg", "is", playerid, inputtext);
Code:
query: SELECT player_password FROM players WHERE player_name = 'krispykreme' LIMIT 1
Code:
Passing query SELECT player_password FROM players WHERE player_name = 'krispykreme' LIMIT 1 | is
Could anyone help me out on this one?
16.08.2012, 14:28
Quote:
I get a few of this errors everyday.
In R6, I could fix it using this: pawn Code:
Any ideas on how to fix this? Note: I have mutex disabled, because I think it caused some random crashes earlier. Note2: I connect to mysql using the external IP, not 127.0.0.1. That way, I can test my gamemode on my local pc. |
04.10.2012, 13:44
Quote:
Good job, BlueG. But who's faster cache_get_row or cache_get_field?
|
However if you meant cache_get_field_content in comparison to cache_get_row, the latter is faster. And the more fields in the result set, the slower cache_get_field_content will get.
cache_get_row operations:
1. get the field value from the specified row from the specified field
2. return it to the PAWN vm
cache_get_field_content operations
1. search among field names in the result set and compare the field name to what the scripter entered
2. get the field value from the found row
3. return it to the PAWN vm
I wrote about it in my tutorial topic a bit as well: click.
09.10.2012, 12:37
Would it be possible to get this working with procedures/mysql_multi_query?
14.10.2012, 05:37
Код:
[11:23:38] Loaded 3 filterscripts. [11:23:38] Error: Function not registered: 'mysql_debug' [11:23:38] Error: Function not registered: 'mysql_connect' [11:23:38] Error: Function not registered: 'mysql_query' [11:23:38] Error: Function not registered: 'mysql_store_result' [11:23:38] Error: Function not registered: 'mysql_num_rows' [11:23:38] Error: Function not registered: 'mysql_fetch_field_row' [11:23:38] Error: Function not registered: 'mysql_free_result' [11:23:38] Error: Function not registered: 'mysql_retrieve_row' [11:23:38] Error: Function not registered: 'mysql_real_escape_string' [11:23:38] Error: Function not registered: 'mysql_fetch_row_format' [11:23:38] Script[gamemodes/The.amx]: Run time error 19: "File or function is not found" [11:23:38] Number of vehicle models: 1
15.10.2012, 20:20
Re-download the plugins. Make sure you replace your includes too.
15.10.2012, 21:34
Quote:
Код:
[11:23:38] Loaded 3 filterscripts. [11:23:38] Error: Function not registered: 'mysql_debug' [11:23:38] Error: Function not registered: 'mysql_connect' [11:23:38] Error: Function not registered: 'mysql_query' [11:23:38] Error: Function not registered: 'mysql_store_result' [11:23:38] Error: Function not registered: 'mysql_num_rows' [11:23:38] Error: Function not registered: 'mysql_fetch_field_row' [11:23:38] Error: Function not registered: 'mysql_free_result' [11:23:38] Error: Function not registered: 'mysql_retrieve_row' [11:23:38] Error: Function not registered: 'mysql_real_escape_string' [11:23:38] Error: Function not registered: 'mysql_fetch_row_format' [11:23:38] Script[gamemodes/The.amx]: Run time error 19: "File or function is not found" [11:23:38] Number of vehicle models: 1 |
15.10.2012, 22:17
is anyone willing to work on fixing the crashes associated with this plugin? I mean R7-2 v4 is still bugged and crashes, well apparently theres is a streamer-mysql plugin. IDK if Incognito can fix it, but certainly BlueG doesn't have time and this is affecting alot of servers that use R7+ greatly (well those who didn't make there own edit of the plugin)...
16.10.2012, 22:42
Does anyone know where I can find a guide on how to make a basic usersystem with this? I don't want to use one, but rather-much to look at it and understand how it works. Guides I've searched for are either out-dated or too complex (I have looked at some filterscripts and that's where the complexity is coming from). If you know, send me a PM, cheers.
17.10.2012, 09:16
OMG Great myspl in samp. I love it
18.10.2012, 14:23
Код:
Failed (plugins/mysql.so: undefined symbol: _Z13stringvprintfPKcPc)
19.10.2012, 16:44
How can I replace mysql_strtok?
I'm a beginner at MySQL.
Anyway, here's the code:
I'm a beginner at MySQL.
Anyway, here's the code:
pawn Код:
public OnPlayerLogin(playerid,password[]) // by Luk0r v1.0
{
MySQLCheckConnection();
new tmp2[256];
new string2[64];
new str[128];
new
string[256]
;
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetRPName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
MySQLFetchAcctSingle(KasutajaInfo[playerid][pSQLID], "Password", KasutajaInfo[playerid][pKey]);
if(!strcmp(KasutajaInfo[playerid][pKey],password, true ) )
{
new Data[1024];
new Field[64];
new rcnt = 1;
MySQLFetchAcctRecord(KasutajaInfo[playerid][pSQLID], Data);
mysql_strtok(Field, "|", Data);
while (mysql_strtok(Field, "|", "")==1)
{
if (rcnt == 3) KasutajaInfo[playerid][pLevel] = strval(Field);
if (rcnt == 4) KasutajaInfo[playerid][pAdmin] = strval(Field);
//A couple more lines...
rcnt++;
}
}
« Next Oldest | Next Newest »
Users browsing this thread: 9 Guest(s)