Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: tWix poslato Novembar 22, 2010, 01:49:29 PRE PODNE

Naslov: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 22, 2010, 01:49:29 PRE PODNE
Evo radio sam opremu za PD! I kad sam ubacio pod OnDialogResponse izbaci mi 8 errora

C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13739) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13741) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13743) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13755) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13767) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13772) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13777) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\GameMode\gamemodes\gm.pwn(13783) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.


To su ovakvi redovi!
if(response) - tu mi javlja error

if(listitem == 1) - tu isto! I tako na sve te iste

I to me buni  :/ Sta god da ubacim pod OnDialogResponse to me zeza

Evo ceo deo!

if(dialogid == 20)
{
if(response)
{
  if(listitem == 0)
{
                   GivePlayerWeapon(playerid,4,1);
                   GivePlayerWeapon(playerid,22,90);
                   GivePlayerWeapon(playerid,25,50);
                   GivePlayerWeapon(playerid,29,120);
                   GivePlayerWeapon(playerid,34,15);
                   GivePlayerWeapon(playerid,31,260);
                   GivePlayerWeapon(playerid,46,1);
                   GivePlayerWeapon(playerid,39,10);
                   SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. jedan!");
           }
   if(listitem == 1)
{
                   GivePlayerWeapon(playerid,24,90);
                   GivePlayerWeapon(playerid,27,120);
                   GivePlayerWeapon(playerid,28,190);
                   GivePlayerWeapon(playerid,30,260);
                   GivePlayerWeapon(playerid,33,150);
                   GivePlayerWeapon(playerid,41,1000);
                   GivePlayerWeapon(playerid,44,1);
                   GivePlayerWeapon(playerid,43,50);
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. dva!");
   }
   if(listitem == 2)
{
                   SetPlayerHealth(playerid, 120);
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pojeo si nekoliko cufti..Sad si sit!");
   }
   if(listitem == 3)
{
                   SetPlayerArmour(playerid, 100);
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste i obukli Pancir!");
   }
   if(listitem == 4)
{
                   GivePlayerWeapon(playerid,17,17);
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "Odabrali ste odelo iz ormara i obukli ga!");
   }
}
return 1;
}

Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Nemanja :P poslato Novembar 22, 2010, 01:53:44 PRE PODNE
moras i nesto ovako da stavis:


public OnPlayerCommandText(playerid, cmdtext[])
{
   if (!strcmp(cmdtext, "/nesto", true))
   {
      ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "nesto","nesto ", ok", "Cancel");
      return 1;
   }


Barem  ja to imam za svaki dialog
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 22, 2010, 01:55:47 PRE PODNE
Naravno da imam.. :D

if(strcmp(cmd, "/equip", true) == 0)
{
        if(PlayerToPoint(5.0,playerid,1603.2113,-1708.8051,5.8906))
        {
            if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
                ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Policija", "Oruzije1 \nOruzije2 \nHelti \nPancir \nOdelo ", "U redu", "Odustani");
            }
            return 1;
        }
    }
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Nemanja :P poslato Novembar 22, 2010, 01:59:13 PRE PODNE
ae probaj ovako
umesto ovogif(response)


stavi ovoswitch(response)


Naslov: Odg: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 22, 2010, 02:02:46 PRE PODNE
Nije! Budu mi isti errori  >:(
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Nemanja :P poslato Novembar 22, 2010, 02:07:32 PRE PODNE
hmmm onda si negde pogresio neznam gde.
evo ti ovaj wiki za dialog: http://wiki.sa-mp.com/wiki/How_to_Create_a_Dialog (http://wiki.sa-mp.com/wiki/How_to_Create_a_Dialog)
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 22, 2010, 08:19:22 PRE PODNE
Jer zna neko kako ovo da resim ???

Nmg nista sto je u dialogu da ubacujem  :( Uvek mi izbaci te errore
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Nemanja :P poslato Novembar 22, 2010, 15:27:33 POSLE PODNE
pogledaj lepo gde si pogresio, probaj nesto da obrises mozda si pogresio u onom /oprema mozda tu nesto nevalja vidi pod koje linije ti je error. Jer mora da radi meni sve super radi ali ne stavljam ono za lidera i clanove.
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Slay poslato Novembar 22, 2010, 15:49:14 POSLE PODNE
ajde ovo probaj


if(dialogid == 20)
{
if(response)
{
   switch(listitem)
   {
          case 0:
          {
              GivePlayerWeapon(playerid,4,1);
              GivePlayerWeapon(playerid,22,90);
              GivePlayerWeapon(playerid,25,50);
              GivePlayerWeapon(playerid,29,120);
              GivePlayerWeapon(playerid,34,15);
              GivePlayerWeapon(playerid,31,260);
              GivePlayerWeapon(playerid,46,1);
              GivePlayerWeapon(playerid,39,10);
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. jedan!");
          }
  case 1:
      {
              GivePlayerWeapon(playerid,24,90);
              GivePlayerWeapon(playerid,27,120);
              GivePlayerWeapon(playerid,28,190);
              GivePlayerWeapon(playerid,30,260);
              GivePlayerWeapon(playerid,33,150);
              GivePlayerWeapon(playerid,41,1000);
              GivePlayerWeapon(playerid,44,1);
              GivePlayerWeapon(playerid,43,50);
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. dva!");
  }
  case 2:
      {
              SetPlayerHealth(playerid, 120);
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pojeo si nekoliko cufti..Sad si sit!");
          }
  case 3:
      {
              SetPlayerArmour(playerid, 100);
          SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste i obukli Pancir!");
          }
  case 4:
      {
              GivePlayerWeapon(playerid,17,17);
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "Odabrali ste odelo iz ormara i obukli ga!");
          }
   }
}
return true;
}
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 22, 2010, 18:46:45 POSLE PODNE
.pwn(13769) : error 010: invalid function or declaration
.pwn(13771) : error 010: invalid function or declaration
.pwn(13773) : error 010: invalid function or declaration
.pwn(13775) : error 010: invalid function or declaration
.pwn(13787) : error 010: invalid function or declaration
.pwn(13799) : error 010: invalid function or declaration
.pwn(13804) : error 010: invalid function or declaration
.pwn(13809) : error 010: invalid function or declaration
.pwn(13816) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

Isto mi dodju errori... A vec imam pod OnDialogResponse Tutorial i Registraciju! I sad sta god da ubacim drugo izbaci mi ove errore :/
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Slay poslato Novembar 22, 2010, 22:16:46 POSLE PODNE
Onda je problem u necem drugom, nije u ovom kodu
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 22, 2010, 22:18:27 POSLE PODNE
Ali kad obrisem to bude sve oK! I cim ubacim pojavi mi te tu errore  :( Nmg nista sto je u vezi sa Dialogom da radim :/
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Ante_Street poslato Novembar 24, 2010, 00:53:32 PRE PODNE
znm to je i meni bilo ti koristis kao i ja mod LARP jel tako?
Nezz ni ja u cem je problem...
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: tWix poslato Novembar 24, 2010, 01:17:46 PRE PODNE
Citat: Ante_Street poslato Novembar 24, 2010, 00:53:32 PRE PODNE
znm to je i meni bilo ti koristis kao i ja mod LARP jel tako?
Nezz ni ja u cem je problem...

Jeste LARP je ali 45K redova  8)
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Ante_Street poslato Novembar 24, 2010, 14:37:48 POSLE PODNE
Ja sam ubacio neke stvari na njega primjerice baze,komande itd
I sada mi nema 3dtext-a od bizeva...znas slucajno o cemu je rijec?
Tako je i sa kucama...
Naslov: Odg: [Pomoc] Dialog errori
Poruka od: Nxidza poslato Decembar 06, 2010, 19:05:54 POSLE PODNE
A da pokusas da stavis


if(dialogid == 20)
{
if(response)
{
    if(listitem == 0)
{
                    GivePlayerWeapon(playerid,4,1);
                    GivePlayerWeapon(playerid,22,90);
                    GivePlayerWeapon(playerid,25,50);
                    GivePlayerWeapon(playerid,29,120);
                    GivePlayerWeapon(playerid,34,15);
                    GivePlayerWeapon(playerid,31,260);
                    GivePlayerWeapon(playerid,46,1);
                    GivePlayerWeapon(playerid,39,10);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. jedan!");
            }
    if(listitem == 1)
{
                    GivePlayerWeapon(playerid,24,90);
                    GivePlayerWeapon(playerid,27,120);
                    GivePlayerWeapon(playerid,28,190);
                    GivePlayerWeapon(playerid,30,260);
                    GivePlayerWeapon(playerid,33,150);
                    GivePlayerWeapon(playerid,41,1000);
                    GivePlayerWeapon(playerid,44,1);
                    GivePlayerWeapon(playerid,43,50);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. dva!");
    }
    if(listitem == 2)
{
                    SetPlayerHealth(playerid, 120);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pojeo si nekoliko cufti..Sad si sit!");
    }
    if(listitem == 3)
{
                    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste i obukli Pancir!");
    }
    if(listitem == 4)
{
                    GivePlayerWeapon(playerid,17,17);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Odabrali ste odelo iz ormara i obukli ga!");
    }
}
return 1;
}
   }
}


Naslov: Odg: [Pomoc] Dialog errori
Poruka od: [UNT] Sergio Logan poslato Decembar 06, 2010, 19:09:55 POSLE PODNE
probaj drugi pawno... mozda su ti include smrdani ili te nesta zeza... probaj pa javi... i ak imas 7icu run as admin i otvori pawn pa open taj mod... probaj... na sedmici zna zajebavat