18.09.2016, 19:09
Well now is showing me the errors:
and also
pawn Код:
21:55:48 CMySQLQuery::Execute[] ERROR (error #2013) Lost connection to MySQL server during query (Query: "INSERT INTO iplogs (`ip`,`playerid`) VALUES ('MyIP','8')")
pawn Код:
public LogIP(string[],psql)
{
new query[500];
mysql_format(SQL,query,500,"INSERT INTO iplogs (`ip`,`playerid`) VALUES ('%s','%d')",string,psql);
mysql_tquery(SQL,query,"","");
return 1;
}
pawn Код:
21:55:48 CMySQLResult::GetRowDataByName() ERROR invalid row index ('48') (Query: "SELECT * FROM users WHERE `name`='Zlatan' AND `password`='AccountPassword'")
pawn Код:
new qstr[256];
format(qstr,100,"SELECT * FROM users WHERE `name`='%s' AND `password`='%s'",playername2,password);
new Cache: pass = mysql_query(SQL,qstr);