List item 1 doesn't works
#1

Код:
if(dialogid == 321)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, 0xAA3333AA, "Uћdraudėte teleportuotis į /tpsumo");
for(new i; i < MAX_PLAYERS; i++)
{
Sumoprasidejes[i] = true;
}

if(listitem == 1)
{
SendClientMessage(playerid, 0xAA3333AA, "Leidћiate teleportuotis į /tpsumo");
for(new i; i < MAX_PLAYERS; i++)
{
Sumoprasidejes[i] = false;
}
}
}
}
}
listitem == 1 doesn't works, why ?
Reply
#2

You should seriously indent your code, that's the one and only reason you couldn't figure this out yourself. This will work:

pawn Код:
if(dialogid == 321)
{
    if(response)
        {
        if(listitem == 0)
            {
            SendClientMessage(playerid, 0xAA3333AA, "Uћdraudete teleportuotis i /tpsumo");
            for(new i = 0; i < MAX_PLAYERS; i++)
                {
                Sumoprasidejes[i] = true;
                }
            }
        if(listitem == 1)
            {
            SendClientMessage(playerid, 0xAA3333AA, "Leidћiate teleportuotis i /tpsumo");
            for(new i = 0; i < MAX_PLAYERS; i++)
                {
                Sumoprasidejes[i] = false;
                }
            }
        }
}
Best regards,
Jesse

EDIT:
The reason for "listitem == 1" not working is because you placed that within the curly brackets of "listitem == 0".
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)