Hmm also irgendiwe klappt das nicht bei mir...weder so:
PHP Code:
shellExecute("fight.exe")
While 1
$cbType = "int"
CmdCB($CA_GETISDEAD, -2)
If($cbVar[0] = 1) Then
UpdateStatus("Dead, waiting")
ProcessClose("fight.exe")
Noch so:
PHP Code:
shellExecute("fight.exe")
While 1
Adlibenable("Deathcheck")
Func DeathCheck()
$cbType = "int"
CmdCB($CA_GETDEAD)
If $cbVar[0] = 1 Then
UpdateStatus("Dead, waiting")
ProcessClose("fight.exe")
EndIf
EndFunc
Wäre schön wenn mir wer helfen kann!