19.08.2013, 14:47
Antes
Ai depois apareceu um erro.
Como fico...
pawn Код:
forward mysql_query_ex(String[]);
public mysql_query_ex(String[])
{
if(ConDead == 0)
{
//if(mysql_ping(connection) != 0)//Kid's mysql
if(mysql_ping() != 1)
{
SendRconCommand("password 666");
SendRconCommand("hostname Mysql problems || Server locked!");
foreach(Player, i)
{
Kick(i);
}
ConDead = 1;
}
}
if(ConDead == 1)
{
new string[1024];
format(string, sizeof(string), "%s\n", String);
MysqlLog(string);
}
else
{
mysql_query(String) ; //<--------------- antes
}
return 1;
}
pawn Код:
F:\Users\weverton\Documents\GM3\gamemode\gamemode\gamemodes\LSL-RP.pwn(8796) : error 035: argument type mismatch (argument 1)
pawn Код:
forward mysql_query_ex(String[]);
public mysql_query_ex(String[])
{
if(ConDead == 0)
{
//if(mysql_ping(connection) != 0)//Kid's mysql
if(mysql_ping() != 1)
{
SendRconCommand("password 666");
SendRconCommand("hostname Mysql problems || Server locked!");
foreach(Player, i)
{
Kick(i);
}
ConDead = 1;
}
}
if(ConDead == 1)
{
new string[1024];
format(string, sizeof(string), "%s\n", String);
MysqlLog(string);
}
else
{
mysql_function_query(String) ;
}
return 1;
}