18.11.2013, 19:12
[Plugin] [REL] MySQL Plugin (Now on github!)
19.11.2013, 17:14
I don't understand how do I get the returned variables, lets say it's $Result['username'] in PHP, how do I get it using this plugin?
19.11.2013, 22:10
This is for SA-MP, not PHP. PHP uses it's own built in MySQL functions.
20.11.2013, 09:50
Good Job Man .
24.11.2013, 10:55
Hello,
I want to compile the R6 Code on Debian 7, first I got an error
main.cpp:193:3: error: "usleep" was not declared in this scope
Then I added in main.cpp following line on top: #include "unistd.h"
Now I got this error:
/usr/bin/ld: CAmxString.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
CAmxString.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [all] Fehler 1
can anyone help me to get it running on debian7?
I want to compile the R6 Code on Debian 7, first I got an error
main.cpp:193:3: error: "usleep" was not declared in this scope
Then I added in main.cpp following line on top: #include "unistd.h"
Now I got this error:
/usr/bin/ld: CAmxString.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
CAmxString.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [all] Fehler 1
can anyone help me to get it running on debian7?
24.11.2013, 12:05
pawn Код:
[06:28:17] [ERROR] CMySQLHandle::ConnectT - (error #2003) Can't connect to MySQL server on '66.150.214.164' (10061)
[06:28:17] [ERROR] ExecuteT[Group_QueryFinish(ii)] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[Group_QueryFinish(ii)] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[Server_OnLoadStats()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[Server_OnLoadStats()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[Admin_CMDAuthOnLoad()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[Admin_CMDAuthOnLoad()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadGates()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadGates()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadTurfs()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadTurfs()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadHouses()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadHouses()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadDynamicMapIcons()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadDynamicMapIcons()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadDynamicDoors()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadDynamicDoors()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadBusinesses()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadBusinesses()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadGangs()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadGangs()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadATM()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadATM()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadArrestPoints()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadArrestPoints()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadImpoundPoints()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadImpoundPoints()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadRadioStations()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadRadioStations()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadShipment()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadShipment()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadRepairPoints()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadRepairPoints()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadJobs()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadJobs()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[OnLoadDynamicVehicles()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[OnLoadDynamicVehicles()] - lost connection, requesting reconnect
[06:28:17] [ERROR] ExecuteT[LoadLockers()] - (error #2006) MySQL server has gone away
[06:28:17] [WARNING] ExecuteT[LoadLockers()] - lost connection, requesting reconnect
[06:28:18] [ERROR] CMySQLHandle::ConnectT - (error #2003) Can't connect to MySQL server on '66.150.214.164' (10061)
[06:28:43] [ERROR] CMySQLHandle::ConnectT - (error #2003) Can't connect to MySQL server on '66.150.214.164' (10061)
[06:28:43] [ERROR] ExecuteT[Group_QueryFinish(ii)] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[Group_QueryFinish(ii)] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[Server_OnLoadStats()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[Server_OnLoadStats()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[Admin_CMDAuthOnLoad()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[Admin_CMDAuthOnLoad()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadGates()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadGates()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadTurfs()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadTurfs()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadHouses()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadHouses()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadDynamicMapIcons()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadDynamicMapIcons()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadDynamicDoors()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadDynamicDoors()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadBusinesses()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadBusinesses()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadGangs()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadGangs()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadATM()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadATM()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadArrestPoints()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadArrestPoints()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadImpoundPoints()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadImpoundPoints()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadRadioStations()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadRadioStations()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadShipment()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadShipment()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadRepairPoints()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadRepairPoints()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadJobs()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadJobs()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[OnLoadDynamicVehicles()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[OnLoadDynamicVehicles()] - lost connection, requesting reconnect
[06:28:43] [ERROR] ExecuteT[LoadLockers()] - (error #2006) MySQL server has gone away
[06:28:43] [WARNING] ExecuteT[LoadLockers()] - lost connection, requesting reconnect
[06:28:44] [ERROR] CMySQLHandle::ConnectT - (error #2003) Can't connect to MySQL server on '66.150.214.164' (10061)
[06:29:47] [ERROR] CMySQLHandle::ConnectT - (error #2003) Can't connect to MySQL server on '66.150.214.164' (10061)
[06:29:47] [ERROR] ExecuteT[Group_QueryFinish(ii)] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[Group_QueryFinish(ii)] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[Server_OnLoadStats()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[Server_OnLoadStats()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[Admin_CMDAuthOnLoad()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[Admin_CMDAuthOnLoad()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadGates()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadGates()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadTurfs()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadTurfs()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadHouses()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadHouses()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadDynamicMapIcons()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadDynamicMapIcons()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadDynamicDoors()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadDynamicDoors()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadBusinesses()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadBusinesses()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadGangs()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadGangs()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadATM()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadATM()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadArrestPoints()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadArrestPoints()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadImpoundPoints()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadImpoundPoints()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadRadioStations()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadRadioStations()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadShipment()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadShipment()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadRepairPoints()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadRepairPoints()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadJobs()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadJobs()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[OnLoadDynamicVehicles()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[OnLoadDynamicVehicles()] - lost connection, requesting reconnect
[06:29:47] [ERROR] ExecuteT[LoadLockers()] - (error #2006) MySQL server has gone away
[06:29:47] [WARNING] ExecuteT[LoadLockers()] - lost connection, requesting reconnect
[06:29:48] [ERROR] CMySQLHandle::ConnectT - (error #2003) Can't connect to MySQL server on '66.150.214.164' (10061)
24.11.2013, 15:06
Quote:
Hello,
I want to compile the R6 Code on Debian 7, first I got an error main.cpp:193:3: error: "usleep" was not declared in this scope Then I added in main.cpp following line on top: #include "unistd.h" Now I got this error: /usr/bin/ld: CAmxString.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC CAmxString.o: could not read symbols: Bad value collect2: error: ld returned 1 exit status make: *** [all] Fehler 1 can anyone help me to get it running on debian7? |
Quote:
recompile with -fPIC |
Quote:
pawn Код:
|
29.11.2013, 13:07
AASDHGSJKHEJHRVDSJKNKD
%E NOT WORKING FOR MY PLAYER NAME ONPLAYERCONNECT, INSERTING NULL CHARACTER ARGH
Nevermind, it's working now, My connection failed
%E NOT WORKING FOR MY PLAYER NAME ONPLAYERCONNECT, INSERTING NULL CHARACTER ARGH
Nevermind, it's working now, My connection failed
02.12.2013, 13:10
Why isn't there a function to check if a cache id is valid? So you could do:
That is useful for dialogs. I use dialogs for in game messages, so when a player uses the command /pms he sees a list dialog with latest recived messages and from there he can click a message to read it. So when the player types /emails, I save all the data using cache_save() and if the player clicks a message, I just use the cached data to show the message to the player, without running the query agains. When the player clicks back he returns to the /pms command and the script checks if the player has anything stored in the cache or not. If there is data stored in the cache for that player, the script loads the data from the cache, if not, it runs a query to get the data.
pawn Код:
if(is_valid_cache(cache_id[playerid)
{
cache_set_active(cache_id[playerid]);
}
else
{
// run a query to get the data.
}
02.12.2013, 15:04
Quote:
Why isn't there a function to check if a cache id is valid? So you could do:
pawn Код:
|
03.12.2013, 02:49
LS-RP is currently on R34 now and it's working great so far.
03.12.2013, 03:10
No crashes?
Mine is alot better, but still unclear to me
Start:
Crashes 1-3 times one day.
4 days without crashes
Crashes 1-3 times one day.
4 days without crashes
recuring...
I'm thinking that I just have some bad code somewhere.
Mine is alot better, but still unclear to me
Start:
Crashes 1-3 times one day.
4 days without crashes
Crashes 1-3 times one day.
4 days without crashes
recuring...
I'm thinking that I just have some bad code somewhere.
03.12.2013, 13:11
Why not use crashdetect? maybe you have some simple "divide by zero" or some wrong code that make a infinite loop..
03.12.2013, 16:28
I've got no crashes or problems as well, it's something wrong with your code.
06.12.2013, 19:05
Hi guys. I try to compare the date:
and I always get: "Yeah" in the log.
My question is - Why?) Someone can help me, please? Where's my error?)
pawn Код:
mysql_format(1, STR256, 188, "SELECT `date` FROM `"TABLE_BLACKLIST"` WHERE `date` <= 'NOW()+0'");
Test = mysql_query(1, STR256);
cache_get_data(rows, fields, 1);
if(rows == 1) print("Yeah");
else print("No...");
My question is - Why?) Someone can help me, please? Where's my error?)
Thank you in advance!
10.12.2013, 22:48
help
log start server
operating system debian 6 x64 - that necessary where throw describe please for operating system debian 6 x64
log start server
Код:
v0.3x-R2-1000p, ©2005-2013 SA-MP Team [02:58:07] filterscripts = "" (string) [02:58:07] weburl = "http:" (string) [02:58:07] password = "" (string) [02:58:07] [02:58:07] Server Plugins [02:58:07] -------------- [02:58:07] Loading plugin: sscanf.so [02:58:07] [02:58:07] =============================== [02:58:07] sscanf plugin loaded. [02:58:07] Version: 2.8.1 [02:58:07] © 2012 Alex "******" Cole [02:58:07] =============================== [02:58:07] Loaded. [02:58:07] Loading plugin: streamer.so [02:58:07] *** Streamer Plugin v2.6.1 by Incognito loaded *** [02:58:07] Loaded. [02:58:07] Loading plugin: mysql.so [02:58:07] Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory) [02:58:07] Loaded 2 plugins. [02:58:07] [02:58:07] Filterscripts [02:58:07] --------------- [02:58:07] Loaded 0 filterscripts.
11.12.2013, 04:09
26_RUSSS, I've already answered your question in your another thread.
11.12.2013, 20:29
Quote:
Someone can help me, please?) post
|
21.12.2013, 14:36
Hey everyone,
since updating to r34 i got the following error on server start:
Maybe someone knows how to fix that...I use the static version of the plugin, because the dynamic did not work
since updating to r34 i got the following error on server start:
Код:
[16:36:35] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
« Next Oldest | Next Newest »
Users browsing this thread: 21 Guest(s)