OnPlayerDeath - Updating Data
#7

Quote:
Originally Posted by Amel_PAtomAXx
Посмотреть сообщение
pawn Код:
if(killerid != INVALID_PLAYER_ID) // Killer Shit
    {
                pInfo[killerid][pKills]++;
        pInfo[killerid][pScore]++;
        pInfo[killerid][pMoney] = pInfo[killerid][pMoney]+100;
        SetPlayerScore(killerid, pInfo[killerid][pScore]);
    }
    //Dead Shit
    pInfo[playerid][pDeaths]++;
    pInfo[playerid][pMoney] = pInfo[playerid][pMoney]-50;

    return 1;
}
Actually correct way is:
pawn Код:
pInfo[playerid][pMoney] = GetPlayerMoney(playerid) - 50;
Reply


Messages In This Thread
OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 22:22
Re: OnPlayerDeath - Updating Data - by RedJohn - 05.08.2013, 22:30
Re: OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 22:36
Re: OnPlayerDeath - Updating Data - by RedJohn - 05.08.2013, 22:41
Re: OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 22:50
Re: OnPlayerDeath - Updating Data - by Amel_PAtomAXx - 05.08.2013, 23:16
Re: OnPlayerDeath - Updating Data - by RedJohn - 05.08.2013, 23:19
Re: OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 23:23
Re: OnPlayerDeath - Updating Data - by SuperViper - 05.08.2013, 23:25
Re: OnPlayerDeath - Updating Data - by Amel_PAtomAXx - 05.08.2013, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)