04.11.2009, 12:00
Hi there.
The amount[playerid] is ALWAYS a digit, for example 7. Why is this not working?
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 555)
{
if (!strcmp(inputtext, amount[playerid]))
{
SetPlayerChatBubble(npcid,"Thank you, Sir! Enjoy your drink.",0xFFFFFFAA,20,4000);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
return 1;
}
}
return 0;
}


