10.04.2010, 15:27
Hi, i have a question?
if i see the dialog list of my food
if i cancel it? im freezed :/
pawn Код:
if(strcmp(cmd, "/buyfood", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4, -22.1709,-138.4660,1003.5469) || IsPlayerInRangeOfPoint(playerid, 4, 379.1356,-186.7193,1000.6328))
{
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Food", "Broodje Bapau\nDonuts\nCoca Cola\nFrites\nBanana\nIcecream", "Select", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You cannot do this command because you are not at a 24/7.");
}
return 1;
}
pawn Код:
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Food", "Broodje Bapau\nDonuts\nCoca Cola\nFrites\nBanana\nIcecream", "Select", "Cancel");