08.02.2013, 14:58
Hello,
when i create to many PVars (cca 800). The next create PVars have a value 0. Why ? How much the limit is ?
Exhample:
from the value of 265 PVar is 0
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; }