Hallo,
ich will das der check auf das Konto geht also auf pAccount, allerdings tuts dies nicht.
new fraktion = 0;
new checks;
if(PlayerInfo[i][pMember] > 0) fraktion = PlayerInfo[i][pMember] - 1;
if(PlayerInfo[i][pLeader] > 0) fraktion = PlayerInfo[i][pLeader] - 1;
if(fraktion >= 0)
{
if(FraktionsKasse[fraktion] - PlayerInfo[i][pGehalt])
{
//PlayerInfo[i][pAccount] += checks;
//GivePlayerMoney(i, checks);
checks = PlayerInfo[i][pGehalt];
PlayerInfo[i][pAccount] += checks;
//GivePlayerMoney(i, checks);
FraktionsKasse[fraktion] -= checks;
}
}
else if(PlayerInfo[i][pJob] != 0 || PlayerInfo[i][pMember] == 0 || PlayerInfo[i][pLeader] == 0)
{
checks = 500;
PlayerInfo[i][pAccount] += checks;
//GivePlayerMoney(i, checks);
}//Should work for every player online
Warum nicht?