25.04.2015, 13:00
Hello!
If that does not work, then give me the code that was issued by the print.
Mencent
PHP код:
case DIALOG_COLORS+1:
{
if(!response)return 1;
SetPlayerColor(playerid,P_Colors[listitem]);
format(gsQuery,sizeof gsQuery,"UPDATE `Accounts` SET `Color`='%i' WHERE `Name`='%s'",listitem,getPlayerName(playerid));
mysql_query(gsquery,THREAD_NONE,playerid,connection);
print(gsQuery);
return 1;
}
//loading player data
cache_get_field_content(0,"Color",savingstring,connection);
SetPlayerColor(playerid,P_Colors[strval(savingstring)]);
Mencent