[POMOC] DIALOG

Započeo <sel1m>, Septembar 17, 2016, 17:51:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim : Editujem C:RP
Detaljniji opis problema :   Ovako ja sam napravio komandu /port sa dijalozima , pa sada imam problem na jednoj liniji i ne mogu skontat kako resiti evo vam kodovi + errori

[pawn]YCMD:port(playerid, params[], help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return Error(playerid, "Moras biti prijavljen.");
   if(PI[playerid][Admin] < 1 && PI[playerid][GM] < 1) return Error(playerid, "Samo Admini & GameMasteri!");
    //if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
   SPD(playerid,DIALOG_ATELEPORT,DIALOG_STYLE_MSGBOX,""SERVER"Teleport", "Organizacije\nLos Santos Lokacije\nSan Fierro\nLas Venturas", "Odaberi", "Izlaz");
   return 1;
}[/pawn]

[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
       if(dialogid == DIALOG_ATELEPORT)
   {
      new string[120];
      if(!response) return 1;
      switch(listitem)
      {
         case 0:
         {
            SPD(playerid,DIALOG_OTELEPORT, DIALOG_STYLE_LIST, ""BELA"Teleport", "LSPD\nBlack Dragon Triads\nMesto za drogu\nThe Vinci Family\nGrove\nBallas\nNovinari", "Odaberi", "Izlaz");
         }
         case 1:
         {
            SPD(playerid,DIALOG_LSTELEPORT, DIALOG_STYLE_LIST, ""BELA"Teleport", "Burg\nBanka\nLS Centar\nSpawn\nBolnica\nPlaza\nAuto Skola", "Odaberi", "Izlaz");
         }
         case 2:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,-1399.1519,-321.2615,14.1484);
            }
            else
            {
               SetPlayerPos(playerid,-1399.1519,-321.2615,14.1484);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do San Fierra!");
         }
         case 3:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1690.4329,1447.2113,10.7663);
            }
            else
            {
               SetPlayerPos(playerid,1690.4329,1447.2113,10.7663);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do Las Venturasa!");
         }
      }
   }
   ///////////////////////////////////////////////////////////////////////////////
   if(dialogid == DIALOG_LSTELEPORT)
   {
      if(!response) return 1;
      switch(listitem)
      {
         case 0:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1213.8459,-925.2637,42.9148);
            }
            else
            {
               SetPlayerPos(playerid,1213.8459,-925.2637,42.9148);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do burga!");
         }
         case 1:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1461.4692,-1026.6687,23.8281);
            }
            else
            {
               SetPlayerPos(playerid,1461.4692,-1026.6687,23.8281);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do banke!");
         }
         case 2:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1528.7382,-1673.2966,13.3828);
            }
            else
            {
               SetPlayerPos(playerid,1528.7382,-1673.2966,13.3828);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do Los Santosa!");
         }
         case 3:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,814.9496,-1334.8177,13.5469);
            }
            else
            {
               SetPlayerPos(playerid,814.9496,-1334.8177,13.5469);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do spawna!");
         }
         case 4:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1204.2029,-1329.0402,13.3984);
            }
            else
            {
               SetPlayerPos(playerid,1204.2029,-1329.0402,13.3984);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do spawna!");
         }
         case 5:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,438.8236,-1810.8392,5.5469);
            }
            else
            {
               SetPlayerPos(playerid,438.8236,-1810.8392,5.5469);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do plaze!");
         }
         case 6:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1559.5591,-2281.8320,13.3828);
            }
            else
            {
               SetPlayerPos(playerid,1559.5591,-2281.8320,13.3828);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do auto skole!");
         }
      }
   }
   //////////////////////////////////////////////////////////////////////////////
   if(dialogid == DIALOG_OTELEPORT)
   {
      if(!response) return 1;
      switch(listitem)
      {
         case 0:
         {
            if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1528.7382,-1673.2966,13.3828);
            }
            else
            {
               SetPlayerPos(playerid,1528.7382,-1673.2966,13.3828);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do LSPD!");
         }
         case 1:
         {
                if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1262.8628,-736.4495,93.8375);
            }
            else
            {
               SetPlayerPos(playerid,1262.8628,-736.4495,93.8375);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do Black Dragon Triads!");
         }
         case 2:
         {
                if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,-1057.4580,-1661.8391,77.1505);
            }
            else
            {
               SetPlayerPos(playerid,-1057.4580,-1661.8391,77.1505);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do mesta za drogu (BDT)!");
         }
         case 3:
         {
                if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,2236.4727,-2186.4226,13.5469);
            }
            else
            {
               SetPlayerPos(playerid,2236.4727,-2186.4226,13.5469);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do The Vinci Family!");
         }
         case 4:
         {
                if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,2437.6843,-1652.9661,13.4803);
            }
            else
            {
               SetPlayerPos(playerid,2437.6843,-1652.9661,13.4803);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do Grove Street Family!");
         }
         case 5:
         {
                if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1874.9053,-1084.8048,23.8281);
            }
            else
            {
               SetPlayerPos(playerid,1874.9053,-1084.8048,23.8281);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do Ballas!");
         }
         case 6:
         {
                if(GetPlayerState(playerid) == 2)
            {
               new idv = GetPlayerVehicleID(playerid);
               SetVehiclePos(idv,1721.1100,-1820.9573,13.5469);
            }
            else
            {
               SetPlayerPos(playerid,1721.1100,-1820.9573,13.5469);
            }
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid,0);
            SCM(playerid,-1,""SPLAVA"[UP:RP] "BELA"Teleportovali ste se do Novinara!");
         }
      }
   }
   //////////////////////////////////////////////////////////////////////////////[/pawn]

[pawn]#define DIALOG_ATELEPORT       138
#define DIALOG_OTELEPORT       140
#define DIALOG_LSTELEPORT      142[/pawn]
ERRORI:

[pawn]C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : warning 215: expression has no effect
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : error 001: expected token: ";", but found "-string-"
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : warning 215: expression has no effect
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : warning 215: expression has no effect
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : warning 215: expression has no effect
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : warning 215: expression has no effect
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : error 001: expected token: ";", but found ")"
C:\Users\seka\Desktop\C-RPG v1.2.0\gamemodes\C-RP.pwn(47395) : fatal error 107: too many error messages on one line

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


4 Errors.
[/pawn]
Poslednja Izmena: Septembar 17, 2016, 17:52:54 POSLE PODNE od Nijaz Selimovic
/\

Koja je tacno linija  :)
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.

Citat: ᕼᖇá'Œá"•Tá—©á'ŽOᐯIá'• poslato Septembar 17, 2016, 18:55:44 POSLE PODNE
Koja je tacno linija  :)

Izvini sto nisam bio tu :) evo linije

[pawn]SPD(playerid,DIALOG_OTELEPORT, DIALOG_STYLE_LIST, ""BELA"Teleport", "LSPD\nBlack Dragon Triads\nMesto za drogu\nThe Vinci Family\nGrove\nBallas\nNovinari", "Odaberi", "Izlaz");[/pawn]
/\

Nezz buraz meni je sve uredu vidi da nisi definisao boju BELA il dialog pa javi
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.