Irgendwie wird nichts geprintet. Ich setze die Variablen beide auf 0, wenn der Spieler dem Server beitritt, und die Abfrage lautet doch, ob der Wert zwischen -15 und 25 liegt.
new PlayerMorale[MAX_PLAYERS];
new PlayerMoraleSpree[MAX_PLAYERS];
//OnPlayerConnect
PlayerMorale[playerid] = 0;
PlayerMoraleSpree[playerid] = 0;
//OnPlayerDeath
new w = GetPlayerVirtualWorld(playerid);
switch(w)
{
case 0:
{
GetPlayerPos(playerid, GlobalX[playerid], GlobalY[playerid], GlobalZ[playerid]);
GetPlayerFacingAngle(playerid, GlobalFA[playerid]);
SavePlayerWeapons(playerid);
ResetPlayerWeapons(playerid);
Condition[playerid] = CONDITION_DOWNED;
ClearAnimations(playerid);
SetPlayerHealth(playerid, FLOAT_INFINITY);
if(-15 < PlayerMoraleSpree[killerid] < 25)
{
PlayerMoraleSpree[killerid]++;
printf("%d", PlayerMoraleSpree[killerid]);
}
if(-15 < PlayerMoraleSpree[playerid] < 25)
{
PlayerMoraleSpree[playerid]--;
printf("%d", PlayerMoraleSpree[playerid]);
}
if(killerid == INVALID_PLAYER_ID)
{
PlayerMoraleSpree[playerid]--;
printf("%d", PlayerMoraleSpree[playerid]);
}
}
return 1;
}