01.05.2012, 19:15
Hi,
how can I pass a variable initialized with a type like File or Text to a timer function?
If I just pass the variable I get "warning 213: tag mismatch". But it's working.
Example:
How can I get rid of this warning?
how can I pass a variable initialized with a type like File or Text to a timer function?
If I just pass the variable I get "warning 213: tag mismatch". But it's working.
Example:
Code:
SomeFunction() { new File:myFile = fopen("myfile.txt", io_read); if (myFile) { SetTimerEx("MyTimer", 10000, false, "d", myFile);// Compiler throws "warning 213: tag mismatch" } } forward MyTimer(File:file); public MyTimer(File:file) { // do something with the file handle }