Zitat von
Ghost_Aut
Also in Großen und ganzen meine ich es so!
Code:
private ["_zahl"];
_zahl = 0;
while {_zahl <= 24} do {
_zahl=_zahl + 1;
hint format ["Zahl: %1", _zahl];
sleep 1;
};
if (_zahl >= 25) exitWith {hint "script code};
Der Befehl "Private" würde in diesen Beispiel doch verhindern, dass "if (_zahl >= 25)" jemals wahr werden würde, oder?