I saved name of the function and name of the model in two different strings, and then I try to create a model with the name and with the function from that strings. But I'm getting SYS error crazy What am I doing wrong here?!
Code:
STRING* s_view = "#30";
STRING* s_function = "#30";

function v_change()
{
	ent_create(s_view,camera.x,s_function);
}

action v_model()
{
	str_cpy(s_view, "v_model.mdl");
	str_cpy(s_function, "v_model");
}

When I create model with the name from the string, but with function v_model, it works just perfect!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung