[POMOC] Dialog

Započeo ceLL_, Oktobar 28, 2010, 03:39:28 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Hoce li neko ove komande da mi prebaci u DIALOGu.....

...::::Please:::... :D

Komanda broj 1 - Ova da se doradi da bude kao i druga...
if (strcmp("/pij", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(3.0,playerid,374.7567,-67.7098,1001.5151))
        {        //GOTOVO
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Meni Pica");
SendClientMessage(playerid, COLOR_LIGHTRED, "/Pivo|/Konjak|/Schewps|/CocaCola");
  }
}

Komanda broj 2 -
if(strcmp(cmd,"/jedi",true)==0)
    {
        if(IsPlayerConnected(playerid))
    {

if (PlayerToPoint(3, playerid,376.5103,-68.1829,1001.5151)||PlayerToPoint(3, playerid,373.6855,-119.1991,1001.4922)||PlayerToPoint(3, playerid,369.4097,-6.2889,1001.8516))//mjesto gdje moze jesti
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
new x_nr[128];
    x_nr = strtok(cmdtext, idx);
    if(!strlen(x_nr))
    {
     SendClientMessage(playerid, COLOR_LIGHTBLUE, "¤¤¤¤¤¤¤¤¤¤¤¤|_Jelovnik Jela_|¤¤¤¤¤¤¤¤¤¤¤¤");
     SendClientMessage(playerid, COLOR_WHITE, "Upisi: /jedi [ime jela]");
     SendClientMessage(playerid, COLOR_WHITE, "*Jelovnik: Pizza[$39] | Burek [$33] | Hotdog [$19] | Sandwich [$24] | Hamburger [$29]");
         return 1;
    }
    if(strcmp(x_nr,"pizza",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+35);
                           GivePlayerMoney(playerid, -39);
           GameTextForPlayer(playerid, "~r~Pojeo si Pizzu", 5000, 1);
               format(string, sizeof(string), "%s jede pizzu", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
   SetPlayerHealth(playerid, HP-5);
                           GivePlayerMoney(playerid, -39);
   format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
    else if(strcmp(x_nr,"hotdog",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+20);
                           GivePlayerMoney(playerid, -19);
           GameTextForPlayer(playerid, "~w~Pojeo si Hotdog", 5000, 1);
               format(string, sizeof(string), "%s jede Hotdog", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
   SetPlayerHealth(playerid, HP-5);
                           GivePlayerMoney(playerid, -19);
   format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
    }
    else if(strcmp(x_nr,"sandwich",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+24);
                           GivePlayerMoney(playerid, -24);
           GameTextForPlayer(playerid, "~w~Pojeo si sandwich", 5000, 1);
               format(string, sizeof(string), "%s jede sandwich", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
   SetPlayerHealth(playerid, HP-5);
                           GivePlayerMoney(playerid, -24);
   format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
    }
    else if(strcmp(x_nr,"hamburger",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+35);
                           GivePlayerMoney(playerid, -29);
           GameTextForPlayer(playerid, "~w~Pojeo si hamburger", 5000, 1);
               format(string, sizeof(string), "%s jede hamburger", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
   SetPlayerHealth(playerid, HP-5);
                           GivePlayerMoney(playerid, -29);
   format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
    }
    else if(strcmp(x_nr,"burek",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+35);
                           GivePlayerMoney(playerid, -33);
           GameTextForPlayer(playerid, "~w~Pojeo si burek", 5000, 1);
               format(string, sizeof(string), "%s jede burek", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
   SetPlayerHealth(playerid, HP-5);
                           GivePlayerMoney(playerid, -33);
   format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername);
               ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
    }
}
    }
return 1;
}


....................::::::::::::::::::::Ako neko ima vremena i volje bio bih mu jako zahvalan::::::::::::::::::::....................  :)
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

Može li neko meni odraditi GM od 0 ?  -.-"  ImaÅ¡ GOMILE tutoriala u vezi dialoga... To prvo, drugo, imaÅ¡ logine uraÄ'ene sa dialogom, pa malo koristi mozak i pregledaj to i skontaj sam sebi uraditi... Niko ti neće radit to nako...
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265

if(strcmp(cmd, "/pij", true) == 0)
{
    if(PlayerToPoint(10.0,playerid,376.6681,-67.4362,1001.5078))
    {
            ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Meni pica", "CocaCola\nPivo\nKonjak\nSchewps ", "U redu", "Odustani");// dodaj sebi koliko hoces jos :)
        }
        return 1;
    }


if(strcmp(cmd, "/jedi", true) == 0)
{
    if(PlayerToPoint(10.0,playerid,376.6681,-67.4362,1001.5078))
    {
            ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Jelovnik", " Pizza\nBurek\nHotdog\nSandwich\nHamburger ", "U redu", "Odustani");// dodaj sebi koliko hoces jos :)
        }
        return 1;
     }       



A za ondialogresponse sebi sam slozi sta hoces.. Ili ako ni to ne znas,reci sta hoces pa da ti napravim to...

Citat: AlÑ"Ñ"N MÑ"кA. poslato Oktobar 28, 2010, 11:00:24 PRE PODNE
Može li neko meni odraditi GM od 0 ?  -.-"  ImaÅ¡ GOMILE tutoriala u vezi dialoga... To prvo, drugo, imaÅ¡ logine uraÄ'ene sa dialogom, pa malo koristi mozak i pregledaj to i skontaj sam sebi uraditi... Niko ti neće radit to nako...

ha, ha....

Citat: ‎(à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") poslato Oktobar 28, 2010, 19:28:29 POSLE PODNE
if(strcmp(cmd, "/pij", true) == 0)
{
    if(PlayerToPoint(10.0,playerid,376.6681,-67.4362,1001.5078))
    {
            ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Meni pica", "CocaCola\nPivo\nKonjak\nSchewps ", "U redu", "Odustani");// dodaj sebi koliko hoces jos :)
        }
        return 1;
    }


if(strcmp(cmd, "/jedi", true) == 0)
{
    if(PlayerToPoint(10.0,playerid,376.6681,-67.4362,1001.5078))
    {
            ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Jelovnik", " Pizza\nBurek\nHotdog\nSandwich\nHamburger ", "U redu", "Odustani");// dodaj sebi koliko hoces jos :)
        }
        return 1;
     }       



A za ondialogresponse sebi sam slozi sta hoces.. Ili ako ni to ne znas,reci sta hoces pa da ti napravim to...

Aj ako imas vremena napravi i za OnDialogResponse...... Po tvojim, na brzinu.. ;)

Hvala ti Puno...
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

de pogledaj moj potpis ono sto pise dolje!!!!!!!!!!!

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Citat: [CH]°°LøpεȤ°°[4EVER] poslato Oktobar 28, 2010, 20:32:33 POSLE PODNE
de pogledaj moj potpis ono sto pise dolje!!!!!!!!!!!

Uredu je, nisi moderator da mu ti to govoriÅ¡... Već sam mu to rekao, sada, ako mu neko pomogne, dobro za njega, ako mu ne pomogne, niÅ¡ta...  Ne moraÅ¡ se ti mjeÅ¡ati... Njegov problem Å¡to ne koristi tražilicu, neće saznat odgovor   ; )

Pozz  ^^ 
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265

Koristio sam TRAZILICU....

I ima samo jedan rezultat za OnDialogResponse....Ali tu nema sto meni treba.. -.-'


I sta se mesas ako je rekao da ce mi uraditi...
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

if(dialogid == 1000)
{
if(response)
{
    if(listitem == 0)
{
GivePlayerMoney(playerid, - 50);
}
}
return 1;
}


Eh sad ovo sam odradio na brzinu... sad sebi dodajes ako hoces neki text i sl... Ovo ti je samo za prvi item.. Tj za CocaColu,ako zelis dodati jos,sto vjerovatno hoces samo kopiraj
if(listitem == 0)
{
GivePlayerMoney(playerid, - 50);
}
      
i if(listitem == 0)  ovde umjeto nule stavljas sledeci redni broj..

Evo kako sam ja to uradio.....

                               if(dialogid == 1000)
{
if(response)
{
                                if(listitem == 0)
{
  format(string, sizeof(string), "%s pije Vodu!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  SetPlayerHealth(playerid, health + 50.0);
}

if(listitem == 1)
{
  format(string, sizeof(string), "%s pije LaVitu!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  SetPlayerHealth(playerid, health + 50.0);
}

if(listitem == 2)
{
  format(string, sizeof(string), "%s pije CocaColu!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  SetPlayerHealth(playerid, health + 50.0);
}

if(listitem == 3)
{
  format(string, sizeof(string), "%s pije Lav Pivo!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  SetPlayerHealth(playerid, health + 50.0);
}

if(listitem == 4)
{
  format(string, sizeof(string), "%s pije Jelen Pivo!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  SetPlayerHealth(playerid, health + 50.0);
}

if(listitem == 5)
{
  format(string, sizeof(string), "%s pije Vinjak!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  SetPlayerHealth(playerid, health + 50.0);
}

if(listitem == 6)
{
  format(string, sizeof(string), "%s pije Pelinkovac!", sendername);
  SendClientMessage(playerid, 0x33AA33AA, string);
  GivePlayerMoney(playerid,-15);
  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  SetPlayerHealth(playerid, health + 50.0);
}
}
        return 1;
            }



I pojave mi se ovi errori...

C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13443) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13445) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13447) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13456) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13465) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13474) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13483) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13492) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13501) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SmartEx RolePlay 0.3b\gamemodes\pfrp.pwn(13510) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"