MYSQL Error
#1

invalid connection handle. (ID = 0)

What does this error mean ? (It's MYSQL error)

Код:
		format(szLargeString, sizeof(szLargeString), "INSERT INTO Igraci (pProfil, pKey) VALUES('%s', '%s')", playername3, password);
		static dbHandle;
		mysql_function_query(dbHandle, szLargeString, false, "", "");
Reply
#2

New pawno compile error

Код:
argument type mismatch (argument 3)
pawn Код:
public OnPlayerRegister(playerid, password[])
{
    if(IsPlayerConnected(playerid))
    {
        new szLargeString[364];
        new playername3[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername3, sizeof(playername3));
        mysql_format(dbHandle, szLargeString, "INSERT INTO `Igraci` (`pProfil`, `pKey`) VALUES (`%s`, `%s`)", playername3, password);
        //^^^^^^^^^^ THAT LINE ^^^^^^^^^^^^^^^^
        mysql_function_query(dbHandle, szLargeString, false, "", "");
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)