15.01.2019, 19:40
Hello everyone, I decided to learn MySQL and make my GM a little more practical, I followed tutorials but when testing, I come across some informalities and errors, such as those mentioned below:
And Errors
There are other errors, but almost all are errors that do not recognize the command that is related to MySQL, I have already updated everything and even that did not help.
PHP код:
warning 213: tag mismatch
// On this Line
IDConexao = mysql_connect(HOST, USUARIO, SENHA, DATABASE);
PHP код:
warning 202: number of arguments does not match definition
//On this Line
mysql_format(IDConexao, Query, sizeof(Query), "INSERT INTO `ContasScore`(`Nome`, `Score`) VALUES ('%s', '%i')", PlayerName(playerid), GetPlayerScore(playerid));
PHP код:
error 017: undefined symbol "mysql_tquery"
error 017: undefined symbol "mysql_format"
//On these respective lines
mysql_tquery(IDConexao, Query, "DadosRegistrados", "i", playerid);
mysql_format(IDConexao, Query, sizeof(Query), "UPDATE `ContasScore` SET `Nome`='%s', `Score`='%i' WHERE `ID`=%d", PlayerName(playerid), GetPlayerScore(playerid), PlayerInfoID[playerid]);