02.11.2014, 19:03
[Plugin] [REL] MySQL Plugin (Now on github!)
05.11.2014, 23:56
hello,
im trying to update my server from R34 to R7 and im almost done but i have this problems over here
i hope some one could help me about it
im trying to update my server from R34 to R7 and im almost done but i have this problems over here
PHP код:
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26472) : error 017: undefined symbol "inline"
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26472) : error 017: undefined symbol "Grabber"
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26473) : error 017: undefined symbol "cache_insert_id"
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26477) : error 017: undefined symbol "mysql_tquery_inline"
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26477) : error 017: undefined symbol "inline"
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26477) : warning 215: expression has no effect
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26477) : warning 215: expression has no effect
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26477) : error 001: expected token: ";", but found ")"
C:\Users\ZOFTer\Desktop\Ravens MYSQL\gamemodes\ZZZ.pwn(26477) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
PHP код:
inline Grabber() { // 26472
HouseInfo[houseid][hdbID] = cache_insert_id(dbhandle); // 26473
printf("[SCRIPT]: Created house %d (%d)", houseid, HouseInfo[houseid][hdbID]);
OnPropUpdate(1,houseid);
}
mysql_tquery_inline(dbhandle, "INSERT INTO properties() VALUES()", using inline "Grabber", ""); // 26477
06.11.2014, 11:59
06.11.2014, 12:03
Oh my god this is awesome thanks Blue
07.11.2014, 05:48
Can you add a static version for CentOS 6 for R39-2?
07.11.2014, 10:27
Trying to update from R37 to R39-2 and I am having a problem
Now here is the problem on R37 it works fine and I don't need for it too connect to mysqld.sock where on R39-2 I have too and the problem is I am on CentOS with cPanel and mysqld.stock isn't included only mysql.stock and there's no way to install the mySQL server with yum or anything I've tried everything.
Quote:
[03:49:12] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [03:49:12] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [03:49:12] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [03:49:12] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) |
08.11.2014, 12:11
Anyone wouldn't have a compiled version of R7 would they? (Don't ask why, I just prefer using that version)
09.11.2014, 07:14
Use the static version from the general Linux download.
Create a shared link from 'mysqld.sock' to 'mysql.sock' or use the normal CentOS build (pretty sure that this should fix that error too).
Quote:
Trying to update from R37 to R39-2 and I am having a problem
Now here is the problem on R37 it works fine and I don't need for it too connect to mysqld.sock where on R39-2 I have too and the problem is I am on CentOS with cPanel and mysqld.stock isn't included only mysql.stock and there's no way to install the mySQL server with yum or anything I've tried everything. |
10.11.2014, 11:29
Yeah cPanel was blocking all mySQL yum tries, I didn't want to really mess up the mysql so I just used a spare dedicated and built a CentOS with the same mySQL version and everything just not cPanel and stole the 32bit files required and used the CentOS one working fine now, just took a hell of a time.
10.11.2014, 11:42
Became interested in the question whether to always clear the cache after calling function cache_delete? So I call a function in it made the request in which the value of any returned and I returned it the result of the function. Do I need to return the result before the function to delete the cache?
for example:
GetPlayerEmail(playerid)
{
new query[128];
format(query, 128, "SELECT `email` FROM "MAIN_DB".`users` WHERE `id` = '%d'", PlayerInfo[playerid][User_ID]);
new Cache:result = mysql_query(g_SQL, query);
cache_get_row(0, 0, query);
cache_delete(result); // you need?
return query;
}
for example:
GetPlayerEmail(playerid)
{
new query[128];
format(query, 128, "SELECT `email` FROM "MAIN_DB".`users` WHERE `id` = '%d'", PlayerInfo[playerid][User_ID]);
new Cache:result = mysql_query(g_SQL, query);
cache_get_row(0, 0, query);
cache_delete(result); // you need?
return query;
}
10.11.2014, 23:26
12.11.2014, 15:27
How do I fix this error in my VPS ?
Quote:
Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory) |
14.11.2014, 10:06
Where can I get the mysql.dll ? pls Someone help with compile it ._.
15.11.2014, 22:30
I always got this bug:
When i leave max_len empty
cache_get_field_content(row, const field_name[], destination[], connectionHandle = 1, max_len = sizeof(destination));
the variable will not saving
When i leave max_len empty
cache_get_field_content(row, const field_name[], destination[], connectionHandle = 1, max_len = sizeof(destination));
the variable will not saving
15.11.2014, 22:52
I keep getting a 403 error when I attempt to download the older versions. Can anyone please link me to those versions asap?
16.11.2014, 14:08
Fix the links
26.11.2014, 04:57
I have problem with loading string(text) from my db
When i'm load string from table.I got blank string all times.
this is my test command to load string
This data in adminlog Table
And this is mysql_log.txt
When i use /vhouse cmd i got blank string
how to fix it
ps.sorry for my bad english
When i'm load string from table.I got blank string all times.
this is my test command to load string
Код:
cmd:vhouse(pid,params[]) { #pragma unused params new d[32],a[32],p[32],r[32]; new rows; mysql_query(handle,"SELECT * FROM `adminlog`"); rows = cache_num_rows(); for(new i=0;i<rows;i++) { cache_get_field_content(0,"Date",d[i]); cache_get_field_content(0,"Admin",a[i]); cache_get_field_content(0,"Player",p[i]); cache_get_field_content(0,"Reason",r[i]); sfm(pid,-1,"Date: %s,Admin: %s,Player: %s,Reason: %s",d[i],a[i],p[i],r[i]); } return 1; }
And this is mysql_log.txt
Код:
[12:34:03] [DEBUG] cache_get_row_count - connection: 1 [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Date", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Date", data: "11/พฤศจิกายน/2014 - 15:15" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Admin", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Admin", data: "izcream" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Player", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Player", data: "ไม่มี" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Reason", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Reason", data: "สร้าง Pickup" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Date", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Date", data: "11/พฤศจิกายน/2014 - 15:15" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Admin", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Admin", data: "izcream" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Player", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Player", data: "ไม่มี" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Reason", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Reason", data: "สร้าง Pickup" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Date", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Date", data: "11/พฤศจิกายน/2014 - 15:15" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Admin", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Admin", data: "izcream" [12:34:03] [DEBUG] cache_get_field_content - row: 0, field_name: "Player", connection: 1, max_len: 1 [12:34:03] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Player", data: "ไม่มี"
how to fix it
ps.sorry for my bad english
26.11.2014, 06:15
@basicllsw: You are doing it completely wrong.
pawn Код:
cmd:vhouse(pid,params[])
{
#pragma unused params
mysql_tquery(handle, "SELECT * FROM adminlog", "OnLoadAdminLog", "i", playerid);
return true;
}
forward OnLoadAdminLog(playerid);
public OnLoadAdminLog(playerid)
{
new d[32], a[32], p[32], r[32];
for(new i = 0; i != cache_get_row_count(); i++)
{
cache_get_field_content(i, "Date", d);
cache_get_field_content(i, "Admin", a);
cache_get_field_content(i, "Player", p);
cache_get_field_content(i, "Reason", r);
printf("Date: %s, Admin: %s, Player: %s, Reason: %s", d, a, p, r);
//sfm(playerid,-1,"Date: %s, Admin: %s, Player: %s, Reason: %s", d, a, p, r);
}
return true;
}
26.11.2014, 07:08
@iZN it's work thanks
but i not want to add OnLoadAdminLog can it's finish in one place
i think if i created many public about sql it's use more resource on my server
ps.sorry for my bad english
edit: i succes to finish this Thanks @iZN alot
but i not want to add OnLoadAdminLog can it's finish in one place
i think if i created many public about sql it's use more resource on my server
ps.sorry for my bad english
edit: i succes to finish this Thanks @iZN alot
28.11.2014, 16:21
Hello!
MySQL R39-2, when doing an INSERT INTO, we do not specify the id.
Is it possible to force to use a specific id?
Ex: Force to insert a line with a given id.
MySQL R39-2, when doing an INSERT INTO, we do not specify the id.
Is it possible to force to use a specific id?
Ex: Force to insert a line with a given id.
« Next Oldest | Next Newest »
Users browsing this thread: 15 Guest(s)