Hi, a compile nem ír semmit de valamiért nem működik.
A Char pVar -nak van megadva egy szám.
if(GetPVarInt(playerid, "Char") == 1)
{
mysql_format(SQL_CONNECTION, query, sizeof(query), "UPDATE `jatekosok` SET `char_1` = %d WHERE `DBID` = %d",
Account[playerid][cSlot][0], Account[playerid][DBID]);
}
else if(GetPVarInt(playerid, "Char") == 2)
{
mysql_format(SQL_CONNECTION, query, sizeof(query), "UPDATE `jatekosok` SET `char_2` = %d WHERE `DBID` = %d",
Account[playerid][cSlot][1], Account[playerid][DBID]);
}
mysql_tquery(SQL_CONNECTION, query);
.