AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Precaching weapons models (https://forums.alliedmods.net/showthread.php?t=128692)

Vertricus 06-04-2010 08:01

Precaching weapons models
 
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?:>


All times are GMT -4. The time now is 05:22.

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