Well im back for more..


God damn.

All compiled to check what its like compiled run the EXE and it just doesnt like it. when it gets to checking to see weather or not the it is connected to the database it replies with a no. lol. and my game ends. but when i runt he game from C Script it works fine. wich i find strangley odd.


Any ideas? its not my fire wall i turned it off.

Oh another thing. i have LibMySQL.dll and A6MySQL.dll in the plugins folder and my compiled game folder. for some reason when i am running it through the C edditor it compiles the A6MySql.dll instead of the one that am telling it to use in my script wich is the LibMySql.dll


Heres the cutouts of my script wich im using.
Code:


string libmysqldll = <libmysql.dll>;
var_nsave mysql_handle;

..


Then in the main
Code:

mysql_handle = dll_open(libmysqldll);
mySQL_Connectdb("Database","localhost","root","yeah");


Finally teh actual script wich uses this.
Code:

if(!mySQL_IsConnected()&&!mySQL_Connectdb("Database","localhost","root","yeah"))
{
beep;
exit; //If no conection to that database then give error
}

txtName.visible = on;
inkey(username);
txtName.visible = off;
txtPassword.visible = on;
inkey(password);
txtPassword.visible = off;

str_cat(Login_Query, "select * from Accounts WHERE Account_Name='");
str_cat(Login_Query, username);
str_cat(Login_Query, "' AND Password='");
str_cat(Login_Query, password);
str_cat(Login_Query, "';");
mySQL_ExecQuery(Login_Query);

if(mySQL_ExecQuery(Login_Query)&&mySQL_RowNumber()==1)
{
Join_Lan();
}
else
{
beep;
exit;//Wrong exit

}




I cant see what it is doing wrong. when compiled it doesnt work. when runt hrough C Script edditor it all works Ace. even tho its trying to use the A6 Dll.

Thanks.


A6 Commercial V6.3 1024MB DDR RAM P4 2.8GHz 256MB GeForce FX 5600 160GB HDD