PVar have a limit?
#1

Hello,
when i create to many PVars (cca 800). The next create PVars have a value 0. Why ? How much the limit is ?

Exhample:
Код:
for(new s;s<300;s++) AddDialog2DItem(playerid,s,s,"Text",-1);
Код:
public AddDialog2DItem(playerid,itemid,modelindex,text[],listitem)
{
	if(itemid < MAX_DIALOG2D_ITEM)
	{
		new str[32];
		format(str,sizeof(str),"D2D%d_modelindex",itemid);
		SetPVatInt(playerid,str,modelindex);
		format(str,sizeof(str),"D2D%d_listitem",itemid);
		SetPVatInt(playerid,str,listitem);
		format(str,sizeof(str),"D2D%d_text",itemid);
		SetPVarString(playerid,str,text);
		if(itemid > GetPVarInt(playerid,"D2D_count")) SetPVarInt(playerid,"D2D_count",itemid);
	}
	else print("AddDialog2DItem");
	return 1;
}
from the value of 265 PVar is 0
Reply


Messages In This Thread
PVar have a limit? - by ATomas - 08.02.2013, 14:58
Re: PVar have a limit? - by Sergei - 08.02.2013, 14:59
Re: PVar have a limit? - by ATomas - 08.02.2013, 15:03
Re: PVar have a limit? - by Tomboeg - 08.02.2013, 18:15
Re: PVar have a limit? - by MicroD - 08.02.2013, 18:45
Re: PVar have a limit? - by MP2 - 08.02.2013, 18:58
Re: PVar have a limit? - by ATomas - 09.02.2013, 11:28

Forum Jump:


Users browsing this thread: 1 Guest(s)