Mysql Help
#5

well,

small mistake

correct one:

Код:
stock saveLounge() { 
	format(szLargeString, sizeof(szLargeString), "UPDATE viplounge SET VIPLoungeExtX = '%f', VIPLoungeExtY = '%f', VIPLoungeExtZ = '%f', VIPLoungeIntX = '%f', VIPLoungeIntY = '%f', VIPLoungeIntZ = '%f'", VIPLoungeExt[0], VIPLoungeExt[1], VIPLoungeExt[2], VIPLoungeInt[0], VIPLoungeInt[1], VIPLoungeInt[2]); 
	format(szLargeString, sizeof(szLargeString), "%s, VIPLoungeVW = '%d', VIPLoungeIntID = '%d', VIPLoungeExtVW = '%d'", szLargeString, VIPLoungeVW, VIPLoungeIntID, VIPLoungeExtVW);
	format(szLargeString, sizeof(szLargeString), "%s, VLockerX = '%f', VLockerY = '%f', VLockerZ = '%f', VLockerVW = '%d', VLockerInt = '%d' WHERE loungeid = '1'",szLargeString, VLockerPos[0], VLockerPos[1], VLockerPos[2], VLockerVW, VLockerInt);
	mysql_query(szLargeString);
	return 1;
}
NOTE: i have made a BOLD on the missing part.
Reply


Messages In This Thread
Mysql Help - by Chenko - 11.08.2012, 21:48
Re: Mysql Help - by Vince - 11.08.2012, 21:55
Re: Mysql Help - by Chenko - 12.08.2012, 16:08
Re: Mysql Help - by Chenko - 13.08.2012, 02:31
Re: Mysql Help - by Kirollos - 13.08.2012, 02:49
Re: Mysql Help - by Chenko - 13.08.2012, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)