Query not working
#5

Replace this code:
Код:
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,PN(playerid));
with this:
Код:
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,PN(playerid));
Use ' instead of `. otherwise, those values will be treated as tables.
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: 2 Guest(s)