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 , 06:45   [solved]help me! (need an answer FAST!)
Reply With Quote #1

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??!!?!?
PHP Code:
new ibuffer[100], sky[1024
    for(new 
0MAX_MODELSi++) 
    { 
        
formatex(buffersizeof buffer 1"models/player/%s/%s.mdl"ALL_MODELS], ALL_MODELS])
        
engfunc(EngFunc_PrecacheModelbuffer);
    }
    for(new 
0MAX_WAVSi++) 
    { 
        
engfunc(EngFunc_PrecacheSoundALL_WAVS]); 
    }
    for(new 
0MAX_MP3Si++) 
    { 
        
engfunc(EngFunc_PrecacheGenericALL_MP3S]); 
    }
    for(new 
0MAX_SKYNAMESi++) 
    { 
        
formatex(skysizeof buffer 1"gfx/env/%sbk.tga"ALL_SKYNAMES], ALL_SKYNAMES])
        
engfunc(EngFunc_PrecacheGenericsky);
        
formatex(skysizeof buffer 1"gfx/env/%sdn.tga"ALL_SKYNAMES], ALL_SKYNAMES])
        
engfunc(EngFunc_PrecacheGenericsky);
        
formatex(skysizeof buffer 1"gfx/env/%sft.tga"ALL_SKYNAMES], ALL_SKYNAMES])
        
engfunc(EngFunc_PrecacheGenericsky);
        
formatex(skysizeof buffer 1"gfx/env/%slf.tga"ALL_SKYNAMES], ALL_SKYNAMES])
        
engfunc(EngFunc_PrecacheGenericsky);
        
formatex(skysizeof buffer 1"gfx/env/%srt.tga"ALL_SKYNAMES], ALL_SKYNAMES])
        
engfunc(EngFunc_PrecacheGenericsky);
        
formatex(skysizeof buffer 1"gfx/env/%sup.tga"ALL_SKYNAMES], ALL_SKYNAMES])
        
engfunc(EngFunc_PrecacheGenericsky);
    } 
it also gives a warning:
Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Symbol is never used: "i" on line 555
Header size: 7860 bytes
Code size: 258576 bytes
Data size: 235204 bytes
Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
Total requirements: 518024 bytes

1 Warning.
Done.
__________________

Last edited by jc980; 11-14-2010 at 08:00.
jc980 is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 11-14-2010 , 07:29   Re: help me! (need an answer FAST!)
Reply With Quote #2

You never use I .
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Vechta
Veteran Member
Join Date: Jun 2010
Old 11-14-2010 , 07:34   Re: help me! (need an answer FAST!)
Reply With Quote #3

Quote:
Originally Posted by lucas_7_94 View Post
You never use I .
xD
Vechta is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 11-14-2010 , 07:35   Re: help me! (need an answer FAST!)
Reply With Quote #4

I used i there! i dont know why its showing that. 0-0?
__________________
jc980 is offline
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 #5

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
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 11-14-2010 , 08:42   Re: [solved]help me! (need an answer FAST!)
Reply With Quote #6

PHP Code:
new ibuffer[100], sky[1024

PHP Code:
new buffer[100], sky[1024
nnajko is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-14-2010 , 13:52   Re: [solved]help me! (need an answer FAST!)
Reply With Quote #7

Quote:
Originally Posted by nnajko View Post
PHP Code:
new ibuffer[100], sky[1024

PHP Code:
new buffer[100], sky[1024
No, it would be better to leave i in that declaration and remove all the other new's
__________________
fysiks 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