Raised This Month: $ Target: $400
 0% 

[solved]help me! (need an answer FAST!)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 11-14-2010 , 08:01   Re: [solved]help me! (need an answer FAST!)
Reply With Quote #1

Quote:
Originally Posted by jc980 View Post
guys can i get help from all of you?

i'd tried this precache method i made and i want to ask anyone of you.

WILL THIS WORK??!!?!?
Code:
new i, buffer[100], sky[1024] 
	for(new i = 0; i < MAX_MODELS; i++) 
	{ 
		formatex(buffer, sizeof buffer - 1, "models/player/%s/%s.mdl", ALL_MODELS[ i ], ALL_MODELS[ i ])
		engfunc(EngFunc_PrecacheModel, buffer);
	}
	for(new i = 0; i < MAX_WAVS; i++) 
	{ 
		engfunc(EngFunc_PrecacheSound, ALL_WAVS[ i ]); 
	}
	for(new i = 0; i < MAX_MP3S; i++) 
	{ 
		engfunc(EngFunc_PrecacheGeneric, ALL_MP3S[ i ]); 
	}
	for(new i = 0; i < MAX_SKYNAMES; i++) 
	{ 
		formatex(sky, sizeof buffer - 1, "gfx/env/%sbk.tga", ALL_SKYNAMES[ i ], ALL_SKYNAMES[ i ])
		engfunc(EngFunc_PrecacheGeneric, sky);
		formatex(sky, sizeof buffer - 1, "gfx/env/%sdn.tga", ALL_SKYNAMES[ i ], ALL_SKYNAMES[ i ])
		engfunc(EngFunc_PrecacheGeneric, sky);
		formatex(sky, sizeof buffer - 1, "gfx/env/%sft.tga", ALL_SKYNAMES[ i ], ALL_SKYNAMES[ i ])
		engfunc(EngFunc_PrecacheGeneric, sky);
		formatex(sky, sizeof buffer - 1, "gfx/env/%slf.tga", ALL_SKYNAMES[ i ], ALL_SKYNAMES[ i ])
		engfunc(EngFunc_PrecacheGeneric, sky);
		formatex(sky, sizeof buffer - 1, "gfx/env/%srt.tga", ALL_SKYNAMES[ i ], ALL_SKYNAMES[ i ])
		engfunc(EngFunc_PrecacheGeneric, sky);
		formatex(sky, sizeof buffer - 1, "gfx/env/%sup.tga", ALL_SKYNAMES[ i ], ALL_SKYNAMES[ i ])
		engfunc(EngFunc_PrecacheGeneric, sky);
	}
it also gives a warning:
hey look how stupid of me.
__________________

Last edited by jc980; 11-14-2010 at 08:04.
jc980 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode