06.11.2013, 17:37
I have this code. It`s not working. What I doing badly?
Код HTML:
new exp[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason) {
if (killerid == INVALID_PLAYER_ID) {
exp[playerid]--;
} else {
exp[playerid] -= 2;
exp[killerid] += 3;
new expupdate[127];
format(expupdate, sizeof(expupdate), "UPDATE `Gracze` SET `Exp` = `Exp`+(%d) WHERE `Nick` = '%s'", exp[playerid], exp[killerid], PlayerName(playerid));
mysql_query(expupdate);
}

