stock AdminLog(playerid[], playerb[], tegevus[], p6hjus[])
{
new Query[100];
new hour, minute, second, year, month, day;
getdate(year, month, day);
gettime(hour, minute, second);
(line 232) -> format(Query, sizeof(Query), "INSERT INTO `admin_logs` (`Admin`, `Player`, `Tegevus`, `Pхhjus`, `Kuu`, `Kell`) VALUES('%s', '%s', '%s', '%s', '%d/%d/%d', '%d:%d:%d')", RPN(playerid), RPN(playerb), tegevus, p6hjus, month, day, year, hour, minute, second);
(line 233) -> mysql_query(Query);
}
(232) : error 035: argument type mismatch (argument 1) (233) : error 035: argument type mismatch (argument 1)
stock AdminLog(playerid,playerb,tegevus,p6hjus[])
{
new Query[250],hour,minute,second,year,month,day;
getdate(year,month,day);
gettime(hour,minute,second);
format(Query,sizeof Query,"INSERT INTO `admin_logs` (`Admin`,`Player`,`Tegevus`,`Pхhjus`,`Kuu`,`Kell`) VALUES ('%s','%s','%s','%s','%d/%d/%d','%d:%d:%d')",
RPN(playerid),RPN(playerb),tegevus,p6hjus,month,day,year,hour,minute,second);
mysql_query(Query);
return 1;
}
AdminLog("Slap",RPN(playerb), P6hjus);
AdminLog(playerid,playerb,"Slap",P6hjus);
new Query[512]; |
mysql_query(SQL ,Query); |
error 035: argument type mismatch (argument 3)
stock AdminLog(playerid,playerb,tegevus[],p6hjus[])
{
new Query[250],hour,minute,second,year,month,day;
getdate(year,month,day);
gettime(hour,minute,second);
format(Query,sizeof Query,"INSERT INTO `admin_logs` (`Admin`,`Player`,`Tegevus`,`Pхhjus`,`Kuu`,`Kell`) VALUES ('%s','%s','%s','%s','%d/%d/%d','%d:%d:%d')",
RPN(playerid),RPN(playerb),tegevus,p6hjus,month,day,year,hour,minute,second);
mysql_query(Query);
return 1;
}
error 035: argument type mismatch (argument 1)
mysql_query(Query);
mysql_query(conHandle,Query);