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 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:
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.
|
__________________