mysql error
#2

pawn Код:
format(gQuery, sizeof(gQuery), "INSERT INTO `textlabel` (`t_id_`,`t_text`,`t_color_`,`t_x`,`t_y`,`t_z`) VALUES ('%d'),('%s'),('%s'),('%f'),('%f'),('%f')", tInfo[playerid][t_id],"red",gPos[playerid][0],gPos[playerid][1],gPos[playerid][2]);
You need 6 parameters there, and you only pass 5, also it's %f and %d, not '%f' and '%d'.

So, it would be:

pawn Код:
VALUES (%d, '%s', '%s', %f, %f, %f)
Reply


Messages In This Thread
mysql error - by BizzyD - 09.08.2014, 10:50
Respuesta: mysql error - by Xabi - 09.08.2014, 11:11
Re: mysql error - by BizzyD - 09.08.2014, 11:35
Re: mysql error - by BizzyD - 09.08.2014, 11:44
Re: mysql error - by Matess - 09.08.2014, 11:49
Re: mysql error - by BizzyD - 09.08.2014, 11:52
Re: mysql error - by Matess - 09.08.2014, 11:59
Re: mysql error - by BizzyD - 09.08.2014, 12:06
Re: mysql error - by BizzyD - 09.08.2014, 12:41
Re: mysql error - by BizzyD - 09.08.2014, 13:42

Forum Jump:


Users browsing this thread: 2 Guest(s)