19.08.2016, 08:27
Hello, i have problem. Emmm, im using in my code function mysql_errno that checks if MySQL connection is true, but code repeats twice times. Example:
And in console is:
[MYSQL] good(and after 1 second again
[MYSQL] good
Same situation where im loading vehicles, mysql repeats function "LoadVeh()" and it makes same vehicle two times. Where is the problem? Is it vice of MySQL R39-5? Can I fix it? Thanks for any help
Код:
mysql_log(LOG_ALL);
MySQL = mysql_connect(HOST, USER, DB, PASSWORD);
if(mysql_errno(MySQL) != 0)
print("[MYSQL]nope");
else
{
print("[MYSQL]good");
}
LoadVeh();
return 1;
}
[MYSQL] good(and after 1 second again

[MYSQL] good
Same situation where im loading vehicles, mysql repeats function "LoadVeh()" and it makes same vehicle two times. Where is the problem? Is it vice of MySQL R39-5? Can I fix it? Thanks for any help

