03.06.2014, 02:10
- Fixed -
if(dialogid == DIALOG_COOKIES) // In other commands show the dialogs
{
if(response)
{
switch(listitem)
{
case 0: // health
{
if(pInfo[playerid][Cookies] < 10) return SCM(playerid, COLOR_RED,"g cukup");
SetPlayerHealth(playerid, 100.0);
pInfo[playerid][Cookies] -= 10;
}
case 1: // armour
{
if(pInfo[playerid][Cookies] < 20) return SCM(playerid, COLOR_RED,"g cukup");
SetPlayerArmour(playerid, 100.0);
pInfo[playerid][Cookies] -= 20;
}
}
}
}