[Pomoc] oko komande /kupi

Započeo Nemanja King, April 10, 2011, 21:39:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Editujem balkan und
Detaljan opis problema: e ovako odem na mesto gde ocu hp da kupim,i kada kucam /kupi i odaberem sta hocu,ali ne dobijem ni hp,i ne oduzmu mi se pare
Dio skripte:pawn,sam sam uradio komandu ali kada dodjem na to mesto i kucam /kupi nece da se dopuni hp i da mi skine pare
Neke slike/video za lakse dobivanje pomoci(neobavezno):/


Kontakt
Skype nemanja.lazarevic.567
XFire kingsamp
Mystic World Community
Server Address 176.104.106.8 :5555

poznaticovik

Pa stavi komandu /kupi ovdje da ti pomognemo -.-'



if(strcmp(cmd, "/kupi", true) == 0)
   {
       if(PlayerToPoint(10.0,playerid,1567.9172,-1897.9913,13.5609))
       {
            ShowPlayerDialog(playerid, kupi, DIALOG_STYLE_LIST, "Brza Hrana", "Pizza\nPivo\nKisela voda\nGazirani sok\nLimunada\nCoca Cola\nSendvic\nPljeskavica ", "U redu", "Odustani");// dodaj sebi koliko hoces jos :)
        }
        return 1;
    }


i pod OnDialogResponse stavim ovo

GetPlayerName(playerid, sendername, sizeof(sendername));
    if(dialogid == kupi)
   {
   if(response)
   {

            if(listitem == 0)
         {
            GivePlayerMoney(playerid, - 50);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 1)
         {
            GivePlayerMoney(playerid, - 60);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 2)
         {
            GivePlayerMoney(playerid, - 70);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 3)
         {
            GivePlayerMoney(playerid, - 80);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 4)
         {
            GivePlayerMoney(playerid, - 90);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 5)
         {
            GivePlayerMoney(playerid, - 100);
            SetPlayerHealth(playerid, 100);
         }
            if(listitem == 6)
         {
            GivePlayerMoney(playerid, - 110);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 7)
         {
            GivePlayerMoney(playerid, -120);
            SetPlayerHealth(playerid, 100);
         }
}
      return 1;
   }

Kontakt
Skype nemanja.lazarevic.567
XFire kingsamp
Mystic World Community
Server Address 176.104.106.8 :5555