07.11.2016, 09:05
Is there any way to inset long queries? I mean if we have a long sentence then pawno return with long sentence error as we all know. So any way to insert long queries? Currently im using like this
PHP код:
format(Query,sizeof(Query),"INSERT INTO `Users` (`Name`, `RegisteredOn`, `RegisteredIP`, `LastLoggedIP`, `Password`, `Level`, `Banned`) VALUES(`%s`,`%s`, `%s`, `%s`, `%s`, `%d`, `%d`)",PN(playerid), string,pIP,pIP,buf,0,0);
format(Query2,sizeof(Query2),"INSERT INTO `Users` (`Donator`, `Score`, `Cash`, `Kills`, `Deaths`, `Skin`, `Muted`, `Autologin`, `TotalSeconds`,`TotalSpentTime`,`LastSeen`) VALUES(`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%s`,`%s`)",0,1,1500,0,0,0,0,0,seconds,ConvertTime(seconds,mins,hour,day),str);
mysql_query(Query);
mysql_query(Query2);