10.01.2016, 18:28
`ChatStyle` = '%d'"
Are you seriously using Chatstyle as the where clause ? Do you know what that will do ? Lemme show you
I use chatstyle, set my chatstyle to 3, You having chatstyle 3 use it, change yours to 5, that actually will change everyone that have/had chatstyle 3 to 5, including me, your where clause should be
`ID` = %d, %d pointing to PlayerInfo[aimid][SQLID] or whatever you saved SQLID into.
Honestly this feels a lot like copy-pasted now not working kind of topic, Where the hell did you take this from ? PlayerInfo[aimid][pChatStyle] << What is this supposed to mean ? it should be playerid not aimid.
Are you seriously using Chatstyle as the where clause ? Do you know what that will do ? Lemme show you
I use chatstyle, set my chatstyle to 3, You having chatstyle 3 use it, change yours to 5, that actually will change everyone that have/had chatstyle 3 to 5, including me, your where clause should be
`ID` = %d, %d pointing to PlayerInfo[aimid][SQLID] or whatever you saved SQLID into.
PHP код:
format(szQuery, sizeof(szQuery), "UPDATE `accounts` SET `ChatStyle`=%d WHERE `ID` = %d", aimid,PlayerInfo[playerid][SQLID]);