Raised This Month: $153 Target: $400
 38% 

nvault load problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tolpecek
Member
Join Date: Dec 2018
Old 01-02-2019 , 08:23   nvault load problem
Reply With Quote #1

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

Last edited by Seta00; 01-03-2019 at 09:03. Reason: Restore to previous version.
tolpecek is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-02-2019 , 08:29   Re: nvault load problem
Reply With Quote #2

PHP Code:
glowLBLUE[id] = !!str_to_num(gblue); 
__________________
KliPPy is offline
eat1k
Senior Member
Join Date: Apr 2018
Old 01-02-2019 , 08:41   Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
Reply With Quote #3

Code:
new Float:iHealth = get_user_health(id)
get_user_health(id) returns an int.
__________________
eat1k is offline
tolpecek
Member
Join Date: Dec 2018
Old 01-02-2019 , 08:47   Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
Reply With Quote #4

Quote:
Originally Posted by eat1k View Post
Code:
new Float:iHealth = get_user_health(id)
get_user_health(id) returns an int.
thanks, solved, about CsTeams?
tolpecek is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-02-2019 , 09:29   Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
Reply With Quote #5

There's no tag mismatch in CsTeams. Post the full error.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tolpecek
Member
Join Date: Dec 2018
Old 01-02-2019 , 09:34   Re: Warning tag mismatch new CsTeams:ctTeam = cs_get_user_team(id)
Reply With Quote #6

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

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

Last edited by tolpecek; 01-02-2019 at 09:38.
tolpecek is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Brazil
Old 01-03-2019 , 09:04   Re: nvault load problem
Reply With Quote #7

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.
Seta00 is offline
Reply


Thread Tools
Display Modes

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 08:31.


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