[ASK] Query under OnPlayerDeath ?
#1

Look :

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new query[128];
   
    pInfo[killerid][Kills]++;
    pInfo[playerid][Deaths]++;

    mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Kills`='%d' WHERE `ID`='%d'",pInfo[killerid][Kills],pInfo[killerid][ID]);
    mysql_pquery(mysql, query, "", "");

    mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Deaths`='%d' WHERE `ID`='%d'",pInfo[playerid][Deaths],pInfo[playerid][ID]);
    mysql_pquery(mysql, query, "", "");
    return 1;
}
This safety?
Or will make server lag/crash?

#Sorryformybadenglish
Reply


Messages In This Thread
[ASK] Query under OnPlayerDeath ? - by VenomMancer - 21.06.2015, 12:15
Re: [ASK] Query under OnPlayerDeath ? - by Dusan01 - 21.06.2015, 12:17
Re: [ASK] Query under OnPlayerDeath ? - by Konstantinos - 21.06.2015, 12:25
Re: [ASK] Query under OnPlayerDeath ? - by VenomMancer - 21.06.2015, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)