POMOC kiosk.

Započeo zglj, Januar 15, 2012, 04:44:27 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: treba mi skripta da npr moze da se jede,pije imam kordinate al nez kako napravit
Hvala unapred...
Dio skripte:

to su te kordinate
AddPlayerClass(271,1231.9546,-949.0168,42.7448,191.5217,0,0,0,0,0,0); //
AddPlayerClass(271,1454.0315,-1744.4292,13.5469,173.4490,0,0,0,0,0,0); //
AddPlayerClass(271,2078.4197,-1942.5887,13.5469,181.0396,0,0,0,0,0,0); //
AddPlayerClass(271,2021.1316,-1941.8813,13.3761,179.0931,0,0,0,0,0,0); //

Napravis komandu npr u dialog style list i posle pod ondialogresponse izvrsis samo proveru sta da uradi ako je izabrao nesto iz te liste.

nez brate kako nisam to nikad radio a hitno mi treba :S

Omg, pa napravio sam ti pre neki dan :o

nemam ono a nije mi ni radilo nece stane srv :S


edit:sve zastopa  :'( :'( :'(
Poslednja Izmena: Januar 15, 2012, 05:33:57 PRE PODNE od KechO MacaN >3

if(strcmp(cmd,"/jedi",true)==0)
    {
        if(IsPlayerConnected(playerid))
    {

if (PlayerToPoint(3, playerid,1129.4067,-940.1750,42.9007)||PlayerToPoint(3, playerid,1129.4067,-940.1750,42.9007)||PlayerToPoint(3, playerid,1129.4067,-940.1750,42.9007))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
new x_nr[128];
    x_nr = strtok(cmdtext, idx);
    if(!strlen(x_nr))
    {
     SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________________________________ [Jelovnik] ____________________________________");
     SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pisi: /jedi [ime jela]");
     SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Jelovnik: Pica[$39] | Burek [$33] | Hotdog [$19] | Sendvic [$24] | Hamburger [$29]");
         return 1;
    }
    if(strcmp(x_nr,"pica",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+35);
                           GivePlayerMoney(playerid, -39);
           GameTextForPlayer(playerid, "~w~Pojeo si Picu", 5000, 1);
               format(string, sizeof(string), "%s jede picu", 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,"sendvic",true) == 0)
    {
                        new Float:HP;
                        GetPlayerHealth(playerid, HP);
                        if(HP<100)
                        {
   SetPlayerHealth(playerid, HP+24);
                           GivePlayerMoney(playerid, -24);
           GameTextForPlayer(playerid, "~w~Pojeo si sendvic", 5000, 1);
               format(string, sizeof(string), "%s jede sendvic", 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;
}



Ti samo izmeni koordinate

de ubaci i kordinate probao sam ali nece :S

if(strcmp(cmd,"/meni",true)==0)
{
if(!ZaSankom(playerid)) return SendClientMessage(playerid, CRVENA, "Nisi za sankom!");
ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Meni", "Pice \nHrana", "U redu", "Odustani");
return 1;
}


OnDialogResponse:
if(dialogid == 1001)
{
if(response)
{
    if(listitem == 0)
{
ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "PICA", "Voda \nKisela voda \nLaVita \nFanta \nPepsi \nCocaCola", "U redu", "Odustani");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, 1003, DIALOG_STYLE_LIST, "HRANA", "Pizza \nBurek \nHotdog \nSandwich \nHamburger \nPljeskavica \nRostilj \nPileca rebarca", "U redu", "Odustani");
}
return 1;
        }
    }




if(dialogid == 1002)
{
if(response)
{
            new Float:pheal; GetPlayerHealth(playerid, pheal);
    if(listitem == 0)
{
GivePlayerMoney(playerid, -5);
ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Pizzu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 1)
{
GivePlayerMoney(playerid, - 5);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Burek.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 2)
{
GivePlayerMoney(playerid, -6);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede HotDog.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 3)
{
GivePlayerMoney(playerid, -7);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Sandwich.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 4)
{
GivePlayerMoney(playerid, -8);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Hamburger.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 5)
{
GivePlayerMoney(playerid, -10);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Pljeskavicu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 6)
{
GivePlayerMoney(playerid, -10);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Rostilj.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 7)
{
GivePlayerMoney(playerid, -10);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Pileca rebarca.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
}
return 1;
}





if(dialogid == 1003)
{
if(response)
{
            new Float:pheal; GetPlayerHealth(playerid, pheal);
    if(listitem == 0)
{
GivePlayerMoney(playerid, - 5);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Vodu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 1)
{
GivePlayerMoney(playerid, - 5);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Kiselu vodu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 2)
{
GivePlayerMoney(playerid, - 6);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije LaVitu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 3)
{
GivePlayerMoney(playerid, - 7);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Fantu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 4)
{
GivePlayerMoney(playerid, - 8);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Pepsi.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 5)
{
GivePlayerMoney(playerid, - 10);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije CocaColu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
}
return 1;
}


stock ZaSankom(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(50.0,playerid,1231.9546,-949.0168,42.7448)) //1
{
    return 1;
}
else if(PlayerToPoint(50.0,playerid,1454.0315,-1744.4292,13.5469)) //2
{
    return 1;
}
else if(PlayerToPoint(50.0,playerid,2078.4197,-1942.5887,13.5469)) //3
{
    return 1;
}
else if(PlayerToPoint(50.0,playerid,2021.1316,-1941.8813,13.3761)) //4
{
    return 1;
}
}
return 0;
}
Poslednja Izmena: Januar 15, 2012, 17:13:27 POSLE PODNE od [CЯP] joXy_

jeli ispod OnDialogResponse da to ubacim a komandu gdje su komande ostale.

Mr.Gagi

Citat: KechO MacaN >3 poslato Januar 15, 2012, 18:14:41 POSLE PODNE
jeli ispod OnDialogResponse da to ubacim a komandu gdje su komande ostale.
Dialoge pod OnDialogResponse
a komandu pod OnPlayerCOmmandText
A ovo:
stock ZaSankom(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(50.0,playerid,1231.9546,-949.0168,42.7448)) //1
{
    return 1;
}
else if(PlayerToPoint(50.0,playerid,1454.0315,-1744.4292,13.5469)) //2
{
    return 1;
}
else if(PlayerToPoint(50.0,playerid,2078.4197,-1942.5887,13.5469)) //3
{
    return 1;
}
else if(PlayerToPoint(50.0,playerid,2021.1316,-1941.8813,13.3761)) //4
{
    return 1;
}
}
return 0;
}

Stavi na kraj moda taj stock

tako sam uradio i ovo mi izbaci


C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17739) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17741) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17743) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17747) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17751) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17754) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17756) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17758) : error 021: symbol already defined: "GetPlayerHealth"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17759) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17761) : error 021: symbol already defined: "_BM_GivePlayerMoney"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17761) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17761) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17763) : error 021: symbol already defined: "JB_SetPlayerHealth"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17763) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17766) : warning 218: old style prototypes used with optional semicolumns
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17767) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17768) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17770) : error 021: symbol already defined: "_BM_GivePlayerMoney"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17770) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17770) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17772) : error 021: symbol already defined: "JB_SetPlayerHealth"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17772) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17775) : warning 218: old style prototypes used with optional semicolumns
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17776) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17777) : error 010: invalid function or declaration
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17779) : error 021: symbol already defined: "_BM_GivePlayerMoney"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17779) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17779) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17781) : error 021: symbol already defined: "JB_SetPlayerHealth"
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17781) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17784) : warning 218: old style prototypes used with optional semicolumns
C:\Documents and Settings\kk\Desktop\sarajevO rol3pLAY EXTRA\gamemodes\sarajevo.pwn(17785) : error 054: unmatched closing brace ("}")

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


26 Errors.

Mr.Gagi

Mogu samo da predpostavim da si zagradu negde pogresio ili si pogresno nesto ubacio.
Broj { i broj } zagrada mora da bude isti

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
pod ovo sam dialoge 



public OnPlayerCommandText(playerid, cmdtext[])
{
ovdje komandu

i na kraju moda stock
Poslednja Izmena: Januar 15, 2012, 19:47:05 POSLE PODNE od KechO MacaN >3

e ovako sam dialoge ubacio

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1001)
{
if(response)
{
    if(listitem == 0)
{
ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "PICA", "Voda \nKisela voda \nLaVita \nFanta \nPepsi \nCocaCola", "U redu", "Odustani");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, 1003, DIALOG_STYLE_LIST, "HRANA", "Pizza \nBurek \nHotdog \nSandwich \nHamburger \nPljeskavica \nRostilj \nPileca rebarca", "U redu", "Odustani");
}
return 1;
        }
    }
    if(dialogid == 1002)
{
if(response)
{
            new Float:pheal; GetPlayerHealth(playerid, pheal);
    if(listitem == 0)
{
GivePlayerMoney(playerid, -5);
ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Pizzu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 1)
{
GivePlayerMoney(playerid, - 5);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Burek.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 2)
{
GivePlayerMoney(playerid, -6);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede HotDog.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 3)
{
GivePlayerMoney(playerid, -7);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Sandwich.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 4)
{
GivePlayerMoney(playerid, -8);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Hamburger.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 5)
{
GivePlayerMoney(playerid, -10);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Pljeskavicu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 6)
{
GivePlayerMoney(playerid, -10);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Rostilj.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 7)
{
GivePlayerMoney(playerid, -10);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
SetPlayerHealth(playerid, pheal+25);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jede Pileca rebarca.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
}
return 1;
}
if(dialogid == 1003)
{
if(response)
{
            new Float:pheal; GetPlayerHealth(playerid, pheal);
    if(listitem == 0)
{
GivePlayerMoney(playerid, - 5);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Vodu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 1)
{
GivePlayerMoney(playerid, - 5);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Kiselu vodu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 2)
{
GivePlayerMoney(playerid, - 6);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije LaVitu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 3)
{
GivePlayerMoney(playerid, - 7);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Fantu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 4)
{
GivePlayerMoney(playerid, - 8);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije Pepsi.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
if(listitem == 5)
{
GivePlayerMoney(playerid, - 10);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
SetPlayerHealth(playerid, pheal+30);
                GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pije CocaColu.", sendername);
ProxDetector(30.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
}
}
return 1;
}


a komandu ovde

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd,"/meni",true)==0)
{
if(!ZaSankom(playerid)) return SendClientMessage(playerid, CRVENA, "Nisi za sankom!");
ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Meni", "Pice \nHrana", "U redu", "Odustani");
return 1;
}


i stock na kraju mod sam stavio