Raised This Month: $ Target: $400
 0% 

Precaching weapons models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Vertricus
Junior Member
Join Date: Aug 2009
Location: Poland>Śląs
Old 06-04-2010 , 08:01   Precaching weapons models
Reply With Quote #1

My array:
Code:
new 		szWeaponsModels[][2][128]	=
		{
			{ "models/secworldwar/v_98k.mdl", 	"models/secworldwar/p_k98.mdl"},
			{ "models/secworldwar/v_sten.mdl", 	"models/secworldwar/p_sten.mdl"},
			{ "models/secworldwar/v_bar.mdl", 	"models/secworldwar/p_barbu.mdl"},
			{ "models/secworldwar/v_spring.mdl", 	"models/secworldwar/p_spring.mdl"},
			{ "models/secworldwar/v_mp40.mdl", 	"models/secworldwar/p_mp40.mdl"},
			{ "models/secworldwar/v_tommy.mdl", 	"models/secworldwar/p_tommy.mdl"},
			{ "models/secworldwar/v_mp44.mdl", 	"models/secworldwar/p_stg44.mdl"},
			{ "models/secworldwar/v_bren.mdl", 	"models/secworldwar/p_bren.mdl"},
			{ "models/secworldwar/v_greasegun.mdl", 	"models/secworldwar/p_grease.mdl"}
		}
and precache_code(I don't precache because I want show you my problem :>):
Code:
public plugin_precache()
{
	new i;
	for(i=0; i< sizeof szWeaponsModels; i++)
	{
		log_amx(szWeaponsModels[i][0])
		log_amx(szWeaponsModels[i][1])
	}
}
and result:
Code:
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_98k.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_k98.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_sten.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_sten.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_bar.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_barbu.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_spring.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_spring.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_mp40.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_mp40.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_tommy.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_tommy.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_mp44.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_stg44.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_bren.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_bren.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /v_greasegun.mdl
L 06/04/2010 - 13:19:21: [vmod.amxx] /p_grease.mdl
Does anyone know what is wrong?:>

Last edited by Vertricus; 06-04-2010 at 08:17.
Vertricus is offline
Send a message via Skype™ to Vertricus
 



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 05:22.


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