[Pomoc]Eror

Započeo Marko94, Decembar 05, 2010, 11:35:16 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Pozdrav evo htio sam da napravim dialog za kupovinu pica u kaficu al mi je izbacio jedan eror,pa evo pogledajte i dali znate u cemu je problem.Hvala
-Eror-
C:\Documents and Settings\XP\Desktop\Balkan Storm\gamemodes\BS-RP.pwn(15871) : error 021: symbol already defined: "JB_OnDialogResponse"
15870- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
15871- {
-Cijeli codovi-
//-------- OnPlayerCommandText----------
//---Moje komande----
//Kafic
   if(strcmp(cmd, "/kupi", true) == 0)
   {
   if (PlayerToPoint(20, playerid,1291.3423,-1871.5021,19.3114))
   {
      ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Kafic","Pivo(1$)\nVino(2$)\nKoka Kola(3$)\nCigara(5$)","Kupi","Izadji");
      return 1;
   }
        }
//-------OnDialogResponse---------
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 1 && response)
   {
      if(listitem == 0)
      {
      GivePlayerMoney(playerid, -1);
      SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
        }
      if(listitem == 1)
      {
      GivePlayerMoney(playerid, -2);
      SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
      }
      if(listitem == 2)
      {
      GivePlayerMoney(playerid, -3);
      SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
      }
      if(listitem == 3)
      {
      GivePlayerMoney(playerid, -5);
      SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
      }
   }
   return 1;
}

15870- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])


izbrisi tu liniju