25.06.2017, 15:29
Код:
SaveSQLStr(HouseData[houseid][HouseID], "houses", "OwnerName", HouseData[houseid][HouseOwnerName]); Server:SaveSQLStr(sqlid, table[], row[], value) { new query[500]; mysql_format(sqlBaglanti, query, sizeof query, "UPDATE %e SET %e = '%s' WHERE id = '%i'", table, row, value, sqlid); mysql_pquery(sqlBaglanti, query); return true; } 'value' is not a type string And replace with: SaveSQLStr(HouseData[houseid][HouseID], "houses", "OwnerName", houseid); Server:SaveSQLStr(sqlid, table[], row[], value) { new query[500]; mysql_format(sqlBaglanti, query, sizeof query, "UPDATE `%s` SET `%s` = '%s' WHERE `id` = '%d'", table, row, value, sqlid); mysql_tquery(sqlBaglanti, query, "", ""); return true; }