30.04.2012, 23:24
How would you make a pScore add 2 score instead of 1. So i know ++ would make 1 score, but how would you make 2 score? Please reply.
pScore = pScore + 2
enum pInfo
{
pPass,
pCash,
pScore,
pAdmin,
pKills,
pDeaths,
pVip,
pRank,
pMwffaClan
}
PlayerInfo[playerid][pScore] = PlayerInfo[playerid][pScore] + 2
pInfo[playerid][pScore]+2;
enum pInfo{
pkills,
ppoints,
pdeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
if blablablabla{
PlayerInfo[playerid][pdeaths] ++;
PlayerInfo[killerid][pkills] ++;
Playerinfo[killerid][ppoints] += 2;
score += 2; // score will now have +2
score -= 5; // subtract 5 from score
score /= 16; // divide score by 16
score *= 3; // multiply score by 3