[Plugin] [REL] SA:MP MySQL Plugin 2.1.1 - Released (1/25/2011

Server crash very often when mysql_fetch_field used in the start gamemode. Please, fix it.
Reply

I get this error sometimes in my script.
The server is crashed then :S
How i fix it?
[debug] Server crashed while executing RL.amx
[debug] Backtrace (most recent call first):
[debug] #0 native mysql_fetch_field() from mysql.DLL
[debug] #1 Float:GetMySQLField_Float(fieldname[]=@0x001f0a78 "EnterX", MySQL:handle=0)+0x60 at mysql.inc:80
[debug] #2 public cmd_function(playerid=2034296, params[]=@0x00000000 "")+0x2f0 at RL.pwn:3495
[debug] #3 native CallLocalFunction() from samp-server.exe
[debug] #4 public OnPlayerCommandText(playerid=2034296, cmdtext[]=@0x00000000 "")+0xffffcc30 at mysql.inc:80

Pls help me
Reply

After searching this thread about my problem, I couldn't find an answer so I'm posting this here.

Код:
while (mysql_fetch_row(data, "|"))
{
		    new tempCar[vInfo];
		    sscanf(data, "p<|>ddddffffddddddddddddddddddd", tempCar[vID], tempCar[vOwner],        tempCar[vModel], tempCar[vLock], tempCar[vX], tempCar[vY], tempCar[vZ], tempCar[vRot], tempCar[vC1], tempCar[vC2], tempCar[vOdometer], tempCar[vMods][0], tempCar[vMods][1], tempCar[vMods][2], tempCar[vMods][3], tempCar[vMods][4], tempCar[vMods][5], tempCar[vMods][6], tempCar[vMods][7], tempCar[vMods][8], tempCar[vMods][9], tempCar[vMods][10], tempCar[vMods][11], tempCar[vMods][12], tempCar[vMods][13], tempCar[vPaintJob], tempCar[vRadioID]);
            
			vehSpawn(tempCar);
}
The problem is that the sscanf function line return an error:
Код:
error 075: input line too long (after substitutions)
I know that there are too many arguments given to the function but how do I add a second sscanf to parse the remaining info?

Using this to parse the last integer wouldn't work, because it would parse the first:
Код:
sscanf(data, "p<|>d", tempCar[vRadioID]);
Any ideas?
Reply

Can someone pastebin the .inc used for SA:MP MySQL Plugin 2.1.1?

Our host doesn't allow us to upload any plugins, so we desperatly need the include!
Reply

Quote:
Originally Posted by Rac3r
Посмотреть сообщение
Can someone pastebin the .inc used for SA:MP MySQL Plugin 2.1.1?

Our host doesn't allow us to upload any plugins, so we desperatly need the include!
http://pastebin.com/BhLFC9Mb

It's 2.1.1, even though it says 2.1 on top :P
Reply

I don't suppose you have what I need aswell RobinOwnz?

Quote:
Originally Posted by Infamous
Посмотреть сообщение
Can anyone re-upload this one for me? 'Static Linux Distributions (Use on Hosted Servers e.g. ServerFFS)'
Reply

Quote:
Originally Posted by Infamous
Посмотреть сообщение
I don't suppose you have what I need aswell RobinOwnz?
Sorry, only got Windows plugin, include and libmysql D:
Reply

Ah ok thanks for replying anyway mate.

Still need it if anyone else has could upload for me?
Reply

Please, upload this to working host, really need.
Reply

EDIT: nvm, see Blacklite's post
Reply

I think I'll just leave these links live as permanent mirrors:
Reply

I think this plugin is a bit out-date.
Reply

It seems that strickenkids's site is offline.
Pls fix it i need to download the plugin
Reply

Quote:
Originally Posted by Lechivre
Посмотреть сообщение
It seems that strickenkids's site is offline.
Pls fix it i need to download the plugin
Quote:
Originally Posted by Blacklite
Посмотреть сообщение
I think I'll just leave these links live as permanent mirrors:
Reply

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
I think this plugin is a bit out-date.
I have no choice. GStylelz MySQL plugin doesn't support CentOS. This does!
Reply

Quote:
Originally Posted by lolumadd_
Посмотреть сообщение
I have no choice. GStylelz MySQL plugin doesn't support CentOS. This does!
I've been running on CentOS since Version R4>? what are you talking about :O

R4, R5, R6, R7 all on CentOS, lol.
Reply

Quote:
Originally Posted by Kar
Посмотреть сообщение
I've been running on CentOS since Version R4>? what are you talking about :O

R4, R5, R6, R7 all on CentOS, lol.
What version of CentOS were you running on? I was using 64-bit. When I used his plugin we had some weird error and it wouldn't work. Switched to StrikenKids and it works with no hassle.
Reply

Quote:
Originally Posted by lolumadd_
Посмотреть сообщение
What version of CentOS were you running on? I was using 64-bit. When I used his plugin we had some weird error and it wouldn't work. Switched to StrikenKids and it works with no hassle.
Oh, now I don't know which bit it runs on. But I know R6 - works with CentOS 5 and R7 works with CentOS 6
Reply

Please reupload
Reply

Quote:
Originally Posted by lolumadd_
Посмотреть сообщение
What version of CentOS were you running on? I was using 64-bit. When I used his plugin we had some weird error and it wouldn't work. Switched to StrikenKids and it works with no hassle.
Just for the record my team has achieved the goal of getting a 64-bit build working on 64-bit CentOS before. I think they did it based largely on the Internet's and xxmitsu's advice. I heard it was quite a complicated task though
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)