11.01.2015, 20:58
The problem is that you are usng the same dialog id for the list of clothes and the list of 24/7..
how should the server know which dialog the listitem came from?
if you click the first item on 24/7 it's listitem = 0 and if you click the first item on clothes it's listitem = 0, too..
so either use a different dialogid or use something like
when showing the 24/7
and
when showing the clothes
and then do
how should the server know which dialog the listitem came from?
if you click the first item on 24/7 it's listitem = 0 and if you click the first item on clothes it's listitem = 0, too..
so either use a different dialogid or use something like
pawn Код:
SetPVarInt(playerid, "FromDialog", 1);
and
pawn Код:
SetPVarInt(playerid, "FromDialog", 2);
and then do
pawn Код:
if(GetPVarInt(playerid, "FromDialog") == 1)
{
set check point and stuff
}
else if(GetPVarInt(playerid, "FromDialog") == 2)
{
set check points for clothes
}