Thread: Formatting bug
View Single Post
Author Message
TheUnderTaker
Senior Member
Join Date: Dec 2013
Location: Israel
Old 08-13-2015 , 09:53   Formatting bug
Reply With Quote #1

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(tempstringsizeof(tempstring), "materials/sprites/%s"s_filename);
PrecacheModel(tempstringtrue); 
My attach:
PHP Code:
FormatEx(tempstringsizeof(tempstring), "materials/sprites/%s.vmt"s_filename);
Trail_Attach(clienttempstring); 
If I do for example:
PHP Code:
FormatEx(tempstringsizeof(tempstring), "materials/sprites/airforce.vmt"s_filename);
PrecacheModel(tempstringtrue); 
and
PHP Code:
FormatEx(tempstringsizeof(tempstring), "materials/sprites/airforce.vmt"s_filename);
Trail_Attach(clienttempstring); 
Works, but if I do

PHP Code:
FormatEx(tempstringsizeof(tempstring), "materials/sprites/%s"s_filename);
PrecacheModel(tempstringtrue); 
and
PHP Code:
FormatEx(tempstringsizeof(tempstring), "materials/sprites/%s.vmt"s_filename);
Trail_Attach(clienttempstring); 
It doesn't, Can I help please ?
__________________
SourcePawn, C# and C++ Programmer.

My plugin list
TheUnderTaker is offline