C-script my=null; Lite-C ???

Posted By: alpha_strike

C-script my=null; Lite-C ??? - 08/05/09 08:49

Hallo, folgendes Problem
Ein Objekt, daß kurz vor seinem "removen" eine Funktion aufruft.
Die Funktion soll trotz dem removen der aufrufenden Entity vollständig ausgeführt werden.
Unter C-Script habe ich hierfür my=null; zum Beginn der Funktion gesetzt. Bei Lite-C gibt es einen Abbruch.

Wie mache ich das jetzt?
Posted By: Cowabanga

Re: C-script my=null; Lite-C ??? - 08/05/09 10:45

In Lite-C:
Code:
my = NULL; //Just capital letters for "NULL"



And because the translator is crap, maybe you mean:
Code:
my.event = NULL;



Or maybe:
Code:
set(my, NULL);



Maybe you should type in English in future.
Posted By: Saturnus

Re: C-script my=null; Lite-C ??? - 08/05/09 12:28

Hello,

by setting proc_mode to PROC_GLOBAL, I think.
Posted By: alpha_strike

Re: C-script my=null; Lite-C ??? - 08/06/09 08:48

Hi Kombucha,
thanks a lot , yes, that it is!!
© 2023 lite-C Forums