Query not working
#1

PHP код:
new Query[700];
              
format(Query,sizeof(Query),"INSERT INTO `users` (`Name`, `RegisteredOn`, `RegisteredIP`, `LastLoggedIP`, `Password`, `Level`, `Banned`");
              
format(Query,sizeof(Query),"%s, `Donator`, `Score`, `Cash`, `Kills`, `Deaths`, `Skin`, `Muted`, `Autologin`, `TotalSeconds`,`TotalSpentTime`",Query);
              
format(Query,sizeof(Query),"%s, `LastSeen`) VALUES(`%s`,`%s`, `%s`, `%s`, `%e`, `%d`, `%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%s`,`%s`)",Query,PN(playerid), string,pIP,pIP,buf,0,0,0,1,1500,0,0,0,0,0,seconds,ConvertTime(seconds,mins,hour,day),str);
              
mysql_tquery(MysqlQuery"OnAccountRegister""i"playerid); 
This is not inserting the data. And to confirm if its inserted i used this
PHP код:
forward OnAccountRegister(playerid);
public 
OnAccountRegister(playerid)
{
    
printf("[Registration] New account registered. Database ID: ");
    return 
true;

Which is not even displayed. That means the query is not inserting the data. Any idea why?
Reply


Messages In This Thread
Query not working - by StrikerZ - 08.11.2016, 09:03
Re: Query not working - by X337 - 08.11.2016, 09:21
Re: Query not working - by StrikerZ - 08.11.2016, 09:28
Re: Query not working - by StrikerZ - 08.11.2016, 09:34
Re: Query not working - by X337 - 08.11.2016, 09:38
Re: Query not working - by StrikerZ - 08.11.2016, 09:48

Forum Jump:


Users browsing this thread: 1 Guest(s)