function SalvareRealizari(playerid) { new string[256], query[256]; format(string, sizeof(string), "%d|%d|%d", PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]; format(query, sizeof(query), "UPDATE `users` SET `Realizari`='%s' WHERE `ID`='%d'", string, PlayerInfo[playerid][pSQLID]) mysql_tquery(SQL, query, "",""); return 1; }
format(string,sizeof(string),"%d|%d|%d",PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]);
SendClientMessage(playerid, -1, string);
function SalvareRealizari(playerid) { new string[256], query[256]; format(string, sizeof(string), "%d|%d|%d", PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]); format(query, sizeof(query), "UPDATE `users` SET `Realizari`='%s' WHERE `ID`='%d'", string, PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, query, "",""); return 1; }
PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]);
Try that :
Код:
function SalvareRealizari(playerid) { new string[256], query[256]; format(string, sizeof(string), "%d|%d|%d", PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]); format(query, sizeof(query), "UPDATE `users` SET `Realizari`='%s' WHERE `ID`='%d'", string, PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, query, "",""); return 1; } |
^
Код:
PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]); |
format(string, sizeof(string), "%d|%d|%d",PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]);
Look ! In addition, he's having two erros If I'm correct.
Код:
format(string, sizeof(string), "%d|%d|%d",PlayerInfo[playerid][pAchievement][0], PlayerInfo[playerid][pAchievement][1], PlayerInfo[playerid][pAchievement][2]); |