Function in File
#1

I was wondering if it is possible to call code that is in a file that is loaded on run-time.

If this doesn't work I will make a parser that reads the code from the file and finds out what to do, but that would be thousands of lines of code.

Thanks.
Reply
#2

As far as I know, there is no string-to-function code. This could be made with a plugin for faster processing and seemingly less work. Or this could be done with pawn code. I assume it would get complicated with creating new variables and control structures(if,for,while,switch).
Reply
#3

Time to learn C
Excited about this project.


Actually, It will have to be able to be called by CallRemoteFunction, and it must be able to access all vars in the GM. I might be figuring out another way.
Reply
#4

Does anyone know how to maybe do a #include on runtime (it can be on runtime, not compile, not while the server is running, basically read a file, and if it says, loadfrom=File.inc then use those functions.


maybe i could use #emit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)