Need a example :)
#7

DIALOG NOT WORKING:

In game i see the dialog but it wont work:
pawn Код:
.....end of another dialog
}
        if(dialogid == DIALOG_TRUNK) {
        if(response) { // if you responded to the dialog
             if(listitem == 0)
             {
              GivePlayerWeapon(playerid, 31, 10000); // Gives player an M4.
             }
              if(listitem == 1)
             {
              GivePlayerWeapon(playerid, 29, 10000); // Gives player an M4.
             }
              if(listitem == 2)
             {
              GivePlayerWeapon(playerid, 23, 10000); // Gives player an M4.
             }
              if(listitem == 3)
             {
              GivePlayerWeapon(playerid, 43, 10000); // Gives player an M4.
             }
              if(listitem == 4)
             {
              SetPlayerArmour(playerid, 75); // Gives player an M4.
             }
              if(listitem == 5)
             {
              SetPlayerHealth(playerid, 25); // Gives player an M4.
             }
              }
        return 1;
    }
        }
    }
    return 0;
}
Please help
Reply


Messages In This Thread
Need a example :) - by Gooday - 14.01.2012, 12:52
Re: Need a example :) - by Mean - 14.01.2012, 12:58
Re: Need a example :) - by Gooday - 14.01.2012, 13:09
Re: Need a example :) - by Mean - 14.01.2012, 13:10
Re: Need a example :) - by Gooday - 14.01.2012, 13:17
Re: Need a example :) - by Mean - 14.01.2012, 13:21
Re: Need a example :) - by Gooday - 14.01.2012, 13:57
Re: Need a example :) - by Mean - 14.01.2012, 14:08
Re: Need a example :) - by Gooday - 14.01.2012, 14:09
Re: Need a example :) - by Min - 14.01.2012, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)