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

Solved SetPackPosition - warning 213: tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 12-12-2016 , 18:52   SetPackPosition - warning 213: tag mismatch
Reply With Quote #1

Code:
public CallBack_Top(Handle:owner, Handle:hndl, const String:error[], any:userid)
{
	if(!Timer_IsEnabled()) return;
	ErrorCheck(hndl, error, "CallBack_Top");
	new client = GetClientOfUserId(userid);
	if(!client || !IsClientInGame(client))
		return;

	new iIndex, iPoints;
	decl String:sName[32];
	if(SQL_GetRowCount(hndl))
	{
		new Handle:hPack = CreateDataPack();
		WritePackCell(hPack, iIndex);
		while(SQL_FetchRow(hndl))
		{
			SQL_FetchString(hndl, 0, sName, sizeof(sName));
			iPoints = SQL_FetchInt(hndl, 1);

			WritePackString(hPack, sName);
			WritePackCell(hPack, iPoints);

			iIndex++;
		}

		SetPackPosition(hPack, 0);
		WritePackCell(hPack, iIndex);
		CreateTopMenu(client, hPack);
	}
	else
		CPrintToChat(client, "%t", "Phrase_Rank_None");
}
Hello. I had updated my compiler and having issue with SetPackPosition for some reason.
SetPackPosition(hPack, 0); <-- this line throws warning
__________________

Last edited by iGANGNAM; 12-13-2016 at 03:41.
iGANGNAM is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 12-12-2016 , 18:53   Re: SetPackPosition - warning 213: tag mismatch
Reply With Quote #2

https://sm.alliedmods.net/new-api/da...etPackPosition
https://sm.alliedmods.net/new-api/datapack/ResetPack
__________________

Last edited by ddhoward; 12-12-2016 at 18:54.
ddhoward is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 12-12-2016 , 19:07   Re: SetPackPosition - warning 213: tag mismatch
Reply With Quote #3

Thank you. Problem is solved!
__________________
iGANGNAM 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 21:09.


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