Raised This Month: $ Target: $400
 0% 

nvault double dimonsional array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-17-2021 , 13:21   nvault double dimonsional array
Reply With Quote #1

how should i save an double-dimensional array ?

like i have

skinCT[33][33]

PHP Code:
public cmdSave(id){
    
formatexvaultdatacharsmax(vaultdata), "%d#%d#%d#%d#%d#%d#%d#%d"checkT[0][id], checkT[1][id], checkT[2][id], checkT[3][id],
 
checkCT[0][id], checkCT[1][id], checkCT[2][id], checkCT[3][id], hudon[id] )
    
nvault_set(nVaultg_szAuthIDid ], vaultdata)
}

public 
cmdGet(id){
    new 
checkps[10], checkt[10], checkct[10], hud[10]
    
nvault_get(nVaultg_szAuthIDid ], vaultdatacharsmax(vaultdata))
    
replace_all(vaultdatacharsmax(vaultdata), "#"" ")
    
parse(vaultdatacheckpscharsmax(checkps), checktcharsmax(checkt), checkctcharsmax(checkct), hudcharsmax(hud))
    
checkPS[id] = str_to_num(checkps)
    
checkT[id] = str_to_num(checkt)
    
checkCT[id] = str_to_num(checkct)
    
hudon[id] = str_to_num(hud)    

this is what i tried but idk how to get it
lexzor 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 14:06.


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