Everytime I want to create an entity using a string, it doesn't give script errors, however it doesn't work, stating it can't open the file. (Usually giving me a weird "can't open file <°>" error ...) But when I simply fully enter the filename in the ent_create line, it works without any problems ... How could this be? What am I doing wrong here?
This works:
Code:
ent_createlocal("bloody.tga", target.x, particle_blood);
This doesn't work;
Code:
string blood = "bloody.tga";
Code:
ent_createlocal(blood, target.x, particle_blood);
Cheers