Raised This Month: $ Target: $400
 0% 

[ES] ¿Porqué no funciona esta forma de setear models?


  
 
 
Thread Tools Display Modes
Author Message
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-28-2010 , 00:31   [ES] ¿Porqué no funciona esta forma de setear models?
#1

Estaba intentando de setear models, pero resulta que de esta manera no anda... ejemplo

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

const MAX_MODELS_EJEMPLO 5

new g_playermodel[33][32]

new 
g_modelindex_ejemplo[MAX_MODELS_EJEMPLO]

new const 
model_ejemplo[][] = { "Ejemplo" }

public 
plugin_precache()
{
    new 
iplayermodel[100]
    
    for (
0sizeof model_ejemploi++)
    {
        
formatex(playermodelsizeof playermodel 1"models/player/%s/%s.mdl"model_ejemplo[i], model_ejemplo[i])
        
g_modelindex_ejemplo[i] = engfunc(EngFunc_PrecacheModelplayermodel)
    }
}

public 
plugin_init()
{
    
register_plugin("PLUGIN""VERSION""AUTHOR")
    
    
RegisterHamHam_Spawn"player""Fw_PlayerSpawn"1)
}

public 
Fw_PlayerSpawn(id)
{
    
copy(g_playermodel[id], sizeof g_playermodel[] - 1model_ejemplo[random_num(0sizeof model_ejemplo -1)])

creo que debería funcionar y no lo hace :S! si alguien me ayuda porfavor, estaré muy agradecido !
__________________
Reality is wrong, dreams are for real.
g_often is offline
L//
Senior Member
Join Date: Aug 2008
Location: Not found
Old 03-28-2010 , 03:05   Re: [ES] ¿Porqué no funciona esta forma de setear models?
#2

No estas seteando nada.
__________________
L// is offline
Send a message via MSN to L//
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-28-2010 , 03:18   Re: [ES] ¿Porqué no funciona esta forma de setear models?
#3

y en el spawn? no se seteaba así? XD
__________________
Reality is wrong, dreams are for real.
g_often is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 03-28-2010 , 08:45   Re: [ES] ¿Porqué no funciona esta forma de setear models?
#4

Quote:
Originally Posted by g_often View Post
y en el spawn? no se seteaba así? XD
Sisi, por supuesto, copiando un string a otro estas seteando un model. OK.
__________________
"There is no knowledge, that is not power"
fezh is offline
Ditoo!
Member
Join Date: Mar 2010
Old 03-28-2010 , 09:53   Re: [ES] ¿Porqué no funciona esta forma de setear models?
#5

Emm... no estas usando ningun modulo...
Ditoo! is offline
 



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 13:07.


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