Raised This Month: $51 Target: $400
 12% 

save data


Post New Thread Reply   
 
Thread Tools Display Modes
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-11-2022 , 22:22   Re: save data
Reply With Quote #11

Hold i have to rewrite it with that way you want.
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-11-2022 , 22:37   Re: save data
Reply With Quote #12

Quote:
Originally Posted by Supremache View Post
Hold i have to rewrite it with that way you want.
It's complicated, but it's your choice:

PHP Code:
enum ClassLvlData
{
    
Goku,
    
Freezer
}

new const 
__int_CLASSLVL[ClassLvlData][]  =
{
    { 
"goku.mdl""ssjgoku.mdl"  },
    { 
"freezer.mdl" },


public 
plugin_precache()
{
    
enum
    
{
        
FirstPossion32 ],
        
SecPossion32 ]
    }
    
precache_model(  __int_CLASSLVLGoku ][ FirstPossion ] ) // "goku.mdl"
    
precache_model(  __int_CLASSLVLGoku ][ SecPossion ] ) // "ssjgoku.mdl"
    
precache_model(  __int_CLASSLVLFreezer ][ FirstPossion ] ) // "freezer.mdl" 

Add more models on the same line:
PHP Code:
enum ClassLvlData
{
    
Goku,
    
Freezer
}

new const 
__int_CLASSLVL[ClassLvlData][]  =
{
    { 
"goku.mdl""ssjgoku.mdl""3thgoku.mdl"  },
    { 
"freezer.mdl""2thFreezer.mdl" },


public 
plugin_precache()
{
    
enum
    
{
        
FirstPossion32 ],
        
SecPossion32 ],
        
ThrPossion32 ]
    }
    
precache_model(  __int_CLASSLVLGoku ][ FirstPossion ] ) // "goku.mdl"
    
precache_model(  __int_CLASSLVLGoku ][ SecPossion ] ) // "ssjgoku.mdl"
    
precache_model(  __int_CLASSLVLGoku ][ ThrPossion ] ) // "3thgoku.mdl"
    
precache_model(  __int_CLASSLVLFreezer ][ FirstPossion ] ) // "freezer.mdl" 
    
precache_model(  __int_CLASSLVLFreezer ][ SecPossion ] ) // "2thFreezer.mdl"

It's not possible to store the maximum number of the horizontal line of the array.
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 06-11-2022 at 23:01.
Supremache is offline
XSlayer
Member
Join Date: Dec 2021
Old 06-11-2022 , 22:45   Re: save data
Reply With Quote #13

Quote:
Originally Posted by Supremache View Post
PHP Code:
enum ClassLvlData
{
    
Goku,
    
Freezer
}

new const 
__int_CLASSLVL[ClassLvlData][]  =
{
    { 
"goku.mdl""ssjgoku.mdl"  },
    { 
"freezer.mdl" },


public 
plugin_precache()
{
    
precache_model(  __int_CLASSLVLGoku ][ ] ) // "goku.mdl"
    
precache_model(  __int_CLASSLVLGoku ][ ] ) // "ssjgoku.mdl"
    
precache_model(  __int_CLASSLVLFreezer ][ ] ) // "freezer.mdl" 

It's not possible to store the maximum number of the horizontal line of the array.

thanks a lot
XSlayer is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-11-2022 , 22:55   Re: save data
Reply With Quote #14

Quote:
Originally Posted by XSlayer View Post
thanks a lot
Check it again: https://forums.alliedmods.net/showpo...2&postcount=12
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Reply



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


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