14.01.2012, 13:57
DIALOG NOT WORKING:
In game i see the dialog but it wont work:
Please help
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;
}