Dialog selection problem - what is wrong [REP ++ ]
#7

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
pawn Код:
SetPVarInt(playerid, "FromDialog", 1);
when showing the 24/7
and
pawn Код:
SetPVarInt(playerid, "FromDialog", 2);
when showing the clothes
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
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)