Mysql problem
#1

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"))
    {
Reply
#2

bump..
Reply
#3

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.
Reply
#4

mysql_connect( HOST_ADDR, HOST_USER, HOST_PASS, HOST_DATA ); i use this format
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)