[Pomoc] komanda kupi

Započeo Nemanja King, April 19, 2011, 21:14:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: BU
Detaljan opis problema:napravio sam komandu kupi,i stalno kada compile u pawn izbaci mi ova 4 errora,a znm kako da resim..pa koa bih mogla pomoc

C:\Users\nemanja\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(16522) : error 017: undefined symbol "dialogid"
C:\Users\nemanja\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(16524) : error 017: undefined symbol "response"
C:\Users\nemanja\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(16527) : error 017: undefined symbol "listitem"
C:\Users\nemanja\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(16532) : error 017: undefined symbol "listitem"
C:\Users\nemanja\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(16526) : warning 203: symbol is never used: "health"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

evo i komande

if(strcmp(cmd, "/kupi", true) == 0)
   {
       if(PlayerToPoint(10.0,playerid,1203.5490,-919.3759,43.0851))
       {
            ShowPlayerDialog(playerid, burg, DIALOG_STYLE_LIST, "Burgershoot", "Pizza\nSendvic ", "U redu", "Odustani");// dodaj sebi koliko hoces jos :)
        }
        return 1;
    }
    if(dialogid == burg)
   {
      if(response)
      {
            new Float:health;
            if(listitem == 0)
         {
            GivePlayerMoney(playerid, - 50);
            SetPlayerHealth(playerid, 100);
         }
         if(listitem == 1)
         {
            GivePlayerMoney(playerid, - 60);
            SetPlayerHealth(playerid, 100);
         }
}
      return 1;
   }

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

poznaticovik

OMG , to se stavlja pod OnDialogResponse , mislim na ovo kada odabereš nešto ::)

stavio sam pod OnDialogResponse
i izbaci mi 1 warning

C:\Users\nemanja\Desktop\Balkan Underground\gamemodes\balkan-underground.pwn(15529) : warning 203: symbol is never used: "health"

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

poznaticovik


hvala punoo,radi :D

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