Hello everyone!,
I made a function that I can attach trails.
So my problem is that I can attach specific trail from specific file.
My precache:
PHP Code:
FormatEx(tempstring, sizeof(tempstring), "materials/sprites/%s", s_filename);
PrecacheModel(tempstring, true);
My attach:
PHP Code:
FormatEx(tempstring, sizeof(tempstring), "materials/sprites/%s.vmt", s_filename);
Trail_Attach(client, tempstring);
If I do for example:
PHP Code:
FormatEx(tempstring, sizeof(tempstring), "materials/sprites/airforce.vmt", s_filename);
PrecacheModel(tempstring, true);
and
PHP Code:
FormatEx(tempstring, sizeof(tempstring), "materials/sprites/airforce.vmt", s_filename);
Trail_Attach(client, tempstring);
Works, but if I do
PHP Code:
FormatEx(tempstring, sizeof(tempstring), "materials/sprites/%s", s_filename);
PrecacheModel(tempstring, true);
and
PHP Code:
FormatEx(tempstring, sizeof(tempstring), "materials/sprites/%s.vmt", s_filename);
Trail_Attach(client, tempstring);
It doesn't, Can I help please ?
__________________