- 0
problema la conectarea "mysql"
-
Similar Content
-
- 2 answers
- 1,499 views
-
- 2 replies
- 212 views
-
Problema turf
By Soryn.,
- 3 answers
- 262 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
melvinzm
Nick: meLvin
Problema: Folosesc gamemodul Blown postat aici , dar cand incerc sa conectez serverul zice ca sa conectat dar defapt nu se conecteaza
Erori / warnings: -
Lini/script: -
Ai incercat sa rezolvi singur ?: da
[pawn]if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS)&& mysql_errno() != 0)
{
printf("[MYSQL]: Conectare la `%s` a avut succes!",SQL_DB);[/pawn]
Asa arata linia , am incercat si cu errno 1 si la fel .
Acum ceva timp mi l.a rezolvat Woops si adaugase ceva cu new handle.
Codul arata asa:
[pawn]/*=================[Callbackuri + Forwarduri + Stockuri]====================*/
forward Sfaturi();
forward ConnectMySQL();
public ConnectMySQL()
{
if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS)&& mysql_errno() != 0)
{
printf("[MYSQL]: Conectare la `%s` a avut succes!",SQL_DB);
}
else
{
printf("[MYSQL]: [ERROR]: Conectare la `%s` a esuat!",SQL_DB);
}
return 1;
}[/pawn]
In log imi apare in felul urmator:
Si daca incerc sa ma inregistrez tot zice sa te inregistrezi in continuare.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts