Mysql problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mysql problem (
/showthread.php?tid=405472)
Mysql problem -
Jony_Cruze - 06.01.2013
the gamemode works completly fine in my pc , i using mysql and , when i put the gamemode in host and data base give's me this error
pawn Код:
Function: mysql_connect called with incorrect parameter count.
Function
pawn Код:
public OnGameModeInit()
{
Streamer_TickRate(150);
Streamer_CellDistance(300);
Audio_CreateTCPServer(7777);
Audio_SetPack("default_pack", true);
new ip[ 32 ];
GetServerVarAsString( "bind", ip, sizeof( ip ) );
mysql_connect( HOST_ADDR, HOST_USER, HOST_PASS, HOST_DATA );
if(fexist("IBP/Other/JoinCounter.cfg"))
{
Re: Mysql problem -
Jony_Cruze - 07.01.2013
bump..
Re: Mysql problem -
park4bmx - 07.01.2013
format (BlueG)
Код:
(const host[], const user[], const database[], const password[])
And the other one
Код:
(const host[], const user[], const pass[], const db[], MySQL:handle = (MySQL:0), auto_reconnect = 0);
it depends which one u use ;X
by the looks of it the second one so just check if ur pass is current, you are allowed access to the database etc.
Re: Mysql problem -
Jony_Cruze - 07.01.2013
mysql_connect( HOST_ADDR, HOST_USER, HOST_PASS, HOST_DATA ); i use this format