28.12.2014, 14:19
can anybody give me a link to the mysql r7 windows please.
MYSQL.dll = https://www.mediafire.com/?mk5b7n2772eqzce
MYSQL.so = https://www.mediafire.com/?fwpdcjwcivhekfe MYSQL.pdb = https://www.mediafire.com/?47d9dmfheo41d9p LIBMYSQL.dll = https://www.mediafire.com/?ghgg2q29buf7xzw LIBCLIENT.SO.15 = https://www.mediafire.com/?37ndnaej31iuc4i |
[19:21:01] Loading plugin: mysql.so [19:21:01] Failed (libssl.so.6: cannot open shared object file: No such file or directory) |
That plug-in version is not supported. Upgrade your script to use a supported version such as R39-2.
|
mysql_format(MySQLConnect, query, 1024, "INSERT INTO `vehs` (`ModelID`, `PosX`, `PosY`, `PosZ`, `PosA`, `Couleur1`, `Couleur2`) VALUES (%d, '%f', '%f', '%f', '%f', %d, %d)", VehInfo[entry][ModelID], VehInfo[entry][Pos][0], VehInfo[entry][Pos][1], VehInfo[entry][Pos][2], VehInfo[entry][Pos][3], couleur1, couleur2);
mysql_tquery(MySQLConnect, query);
printf("%d", cache_insert_id());
mysql_format(MySQLConnect, query, 1024, "INSERT INTO `vehs` (`ModelID`, `PosX`, `PosY`, `PosZ`, `PosA`, `Couleur1`, `Couleur2`) VALUES (%d, '%f', '%f', '%f', '%f', %d, %d)", VehInfo[entry][ModelID], VehInfo[entry][Pos][0], VehInfo[entry][Pos][1], VehInfo[entry][Pos][2], VehInfo[entry][Pos][3], couleur1, couleur2); mysql_tquery(MySQLConnect, query, "ReturnCallback", ""); forward ReturnCallback(); public ReturnCallback() { printf("%d", cache_insert_id()); }
Код:
mysql_format(MySQLConnect, query, 1024, "INSERT INTO `vehs` (`ModelID`, `PosX`, `PosY`, `PosZ`, `PosA`, `Couleur1`, `Couleur2`) VALUES (%d, '%f', '%f', '%f', '%f', %d, %d)", VehInfo[entry][ModelID], VehInfo[entry][Pos][0], VehInfo[entry][Pos][1], VehInfo[entry][Pos][2], VehInfo[entry][Pos][3], couleur1, couleur2); mysql_tquery(MySQLConnect, query, "ReturnCallback", ""); forward ReturnCallback(); public ReturnCallback() { printf("%d", cache_insert_id()); } |
--- On another note, I would very much like to see better internal handling of NULL values. If a NULL value appears in a non-string column and you try to retrieve it with the _int or _float functions you will get errors. Maybe add another optional parameter to cache_get_row_int and cache_get_row_float that allows the user to specify a default value should the field be NULL. I know you can use IFNULL in the query to circumvent the problem, but if you have a lot of fields that can be NULL then it can significantly lengthen the query. Especially if you also want to add an alias for use with the cache_get_field_content functions. |
1. Does this plugin work with drop in mysql replacements like mariadb?
2. If I were to host the mysql database in the US and the sa:mp server in the EU, would this cause lag on the server? Thanks. |