Jump to content

1 Variable = 3 Cvars


LondoN eXtream

Recommended Posts

Va voi arata cum sa faceti 3 sau mai multe cvaruri cu o singura variabila.

 

Pentru inceput o creem , cu 3 pozitii

 

new iOrigin[ 3 ]

 

Adaugam in plugin_init

 

 
iOrigin[ 1 ] = register_cvar("amx_cvar_1", "1")
iOrigin[ 2 ] = register_cvar("amx_cvar_2", "2")
iOrigin[ 3 ] = register_cvar("amx_cvar_3", "3")

 

1 , 2 ,3 Reprezinta cvarurile, de aceea am pus new iOrigin[ 3 ] , 3 find numarul de cvaruri care se numara.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...