SQL small help
#2

your code:
Код:
`Score`=%d WHERE `ID`=%d"

" pInfo[playerid][ID], pInfo[playerid][Score]"
it should be like:
Код:
" pInfo[playerid][Score], pInfo[playerid][ID]"
Edited Code:

Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Admin`=%d, `VIP`=%d, `Reputation`=%d, `posX`=%f, `posY`=%f, `posZ`=%f, `Score`=%d WHERE `ID`=%d", pInfo[playerid][Admin], pInfo[playerid][VIP], pInfo[playerid][Reputation], pos[0], pos[1], pos[2], pInfo[playerid][Score], pInfo[playerid][ID]);
Reply


Messages In This Thread
SQL small help - by TwinkiDaBoss - 11.07.2015, 16:19
Re: SQL small help - by M4D - 11.07.2015, 16:27
Re: SQL small help - by TwinkiDaBoss - 11.07.2015, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)