AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   nvault load problem (https://forums.alliedmods.net/showthread.php?t=313249)

tolpecek 01-02-2019 07:23

nvault load problem
 
hello, i am using nvault for saving stats on my server and i need help.
when loading bool info i have warning tag mis match
Code:

formatex( szKey , 127 , "%s-ID-Unlocks", g_AuthID[id]);
        formatex( szData , 1023 , "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",
        g_galil[id],g_aug[id],g_m4a1[id],g_famas[id],g_ak47[id],
        g_tmp[id],g_mp5[id],g_ump[id],g_p90[id],
        g_m3[id],g_xm1014[id],g_scout[id],g_awp[id],g_para[id],
        g_p228[id],g_five[id],g_elite[id],g_glock[id],g_deagle[id],
        g_zariche[id], g_apokalypsa[id],g_aura[id], glowBLUE[id], glowPURPLE[id], glowRED[id], glowWHITE[id], glowYELLOW[id], glowORANGE[id], glowLBLUE[id], glowGREEN[id]);
               
        nvault_get(g_Vault, szKey, szData, 1023)

        new galil[32],aug[32],m4a1[32],famas[32],ak47[32],
        tmp[32],mp5[32],ump[32],p90[32],
        m3[32],xm1014[32],scout[32],awp[32],para[32],
        p228[32],five[32],elite[32],glock[32],deagle[32], zariche[32], apokalypsa[32], aura[32], gblue[32], gpurp[32], gred[32], gwhit[32], gyell[32], goran[32], glblue[32], ggreen[32]
               
        parse(szData, galil, 31, aug, 31, m4a1, 31, famas, 31, ak47, 31,
        tmp, 31, mp5, 31, ump, 31, p90, 31,
        m3, 31, xm1014, 31, scout, 31, awp, 31, para, 31,
        p228, 31, five, 31, elite, 31, glock, 31, deagle, 31, zariche, 31, apokalypsa , 31, aura, 31, gblue, 31, gpurp, 31, gred, 31, gwhit, 31, gyell, 31, goran, 31, glblue, 31, ggreen, 31)
               
        g_galil[id] = str_to_num(galil)
        g_aug[id] = str_to_num(aug)
        g_m4a1[id] = str_to_num(m4a1)
        g_famas[id] = str_to_num(famas)
        g_ak47[id] = str_to_num(ak47)
               
        g_tmp[id] = str_to_num(tmp)
        g_mp5[id] = str_to_num(mp5)
        g_ump[id] = str_to_num(ump)
        g_p90[id] = str_to_num(p90)
               
        g_m3[id] = str_to_num(m3)
        g_xm1014[id] = str_to_num(xm1014)
        g_scout[id] = str_to_num(scout)
        g_awp[id] = str_to_num(awp)
        g_para[id] = str_to_num(para)
               
        g_p228[id] = str_to_num(p228)
        g_five[id] = str_to_num(five)
        g_elite[id] = str_to_num(elite)
        g_glock[id] = str_to_num(glock)
        g_deagle[id] = str_to_num(deagle)
        g_zariche[id] = str_to_num(zariche)
        g_apokalypsa[id] = str_to_num(apokalypsa)
        g_aura[id] = str_to_num(aura)
       
        glowLBLUE[id] = str_to_num(gblue) //warning
        glowPURPLE[id] = str_to_num(gpurp) //warning
        glowRED[id] = str_to_num(gred) //warning
        glowWHITE[id] = str_to_num(gwhit) //warning
        glowYELLOW[id] = str_to_num(gyell) //warning
        glowORANGE[id] = str_to_num(goran) //warning
        glowLBLUE[id] = str_to_num(glblue) //warning
        glowGREEN[id] = str_to_num(ggreen) //warning


klippy 01-02-2019 07:29

Re: nvault load problem
 
PHP Code:

glowLBLUE[id] = !!str_to_num(gblue); 


eat1k 01-02-2019 07:41

Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
 
Code:
new Float:iHealth = get_user_health(id)
get_user_health(id) returns an int.

tolpecek 01-02-2019 07:47

Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
 
Quote:

Originally Posted by eat1k (Post 2632348)
Code:
new Float:iHealth = get_user_health(id)
get_user_health(id) returns an int.

thanks, solved, about CsTeams?

OciXCrom 01-02-2019 08:29

Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
 
There's no tag mismatch in CsTeams. Post the full error.

tolpecek 01-02-2019 08:34

Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
 
Code:

//// basebuilder72_custom_steamid.sma
// C:\Users\Gyros\Desktop\basebuilder72-custom\addons\amxmodx\scripting\basebuilder72_custom_steamid.sma(4987) : warning 213: tag mismatch
// C:\Users\Gyros\Desktop\basebuilder72-custom\addons\amxmodx\scripting\basebuilder72_custom_steamid.sma(9096) : warning 204: symbol is assigned a value that is never used: "g_iTimeExample"
// C:\Users\Gyros\Desktop\basebuilder72-custom\addons\amxmodx\scripting\basebuilder72_custom_steamid.sma(9096) : warning 204: symbol is assigned a value that is never used: "hasbought"
// Header size:          8076 bytes
// Code size:          311432 bytes
// Data size:          213104 bytes
// Stack/heap size:    131072 bytes; max. usage is unknown, due to recursion
// Total requirements:  663684 bytes
//
// 3 Warnings.
// Done.
//
// Compilation Time: 3,87 sec
// ----------------------------------------

Press enter to exit ...

ignore never used symbols, once i will use them :D

4987 is line with if in task hpregenloon, the second one

Seta00 01-03-2019 08:04

Re: nvault load problem
 
I restored your original post/title. If you want to ask a new question, create a new thread. This way if users run into the same problem you had they can find the thread and the solution.


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

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