26.09.2010, 12:42
Quote:
Is there a entry in your Database yet? If not you cannot use UPDATE, you need to use INSERT in that case.
Also you could make it more effecient by not always formating the string. Use this: Код:
UPDATE `playerinfo` SET (`member`,`blabla`,`Blabla2`) VALUES ('%d','%d','%d') WHERE `user` = '%s' #edit: i corrected my post |
Код:
UPDATE `playerinfo` SET `key` = '%s', `level` = '%d',`admin` = '%d' WHERE `user` = '%s'", PlayerInfo[playerid][pKey], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pAdmin], Escape[0]