24.04.2013, 23:52
Why my table didn't was veryfied with succes?
All i'm getting is "Conecting at MySQL" and nothing more...
Could someone help me? Thanks...
pawn Код:
public MySQL_Start()
{
print("Conecting at MySQL");
MySQL_Connected = mysql_connect(mysql_host,mysql_user,mysql_database,mysql_password);
if(!MySQL_Connected) return print("Connection with MySQL was not possible.");
else
{
mysql_function_query(MySQL_Connected,"CREATE TABLE IF NOT EXISTS `users` (`id` int(11) NOT NULL, AUTO_INCREMENT,`name` varchar(25) NOT NULL,`password` varchar(25) NOT NULL,`score` int(11) NOT NULL,`bank` int(11) NOT NULL,`skin` int(11) NOT NULL,`money` int(11) NOT NULL,PRIMARY KEY(`id`))",false,"MySQL_Start_Response","s","users");
}
return 1;
}
// The response
public MySQL_Start_Response(text[])
{
return Printf("%s table verified succesfully.",text);
}
Could someone help me? Thanks...