13.08.2012, 02:49
well,
small mistake
correct one:
NOTE: i have made a BOLD on the missing part.
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; }