[Pomoc] Dialog

Započeo Tong1950Po, Decembar 31, 2011, 13:48:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: Vako, ima komanda kupi /kupinaocale i radilo je! onda sam ja je stavija u dialog pa mi sada ne radi, kad stisnem kupi nece da kupi  Ovo je kako je prije bilo if(strcmp(cmd, "/kupinaocale", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
    if(!PlayerToPoint(2.0,playerid,2069.3113,-1773.7755,13.5595))
{
    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste kod Glasses Shop-a.");
    return 1;
}
ShowPlayerDialog(playerid,DIALOG_GLASSES,DIALOG_STYLE_INPUT,"{F3FF02}[Glasses Shop]","{48E31C}___________________________________________________\n\n{00C0FF}Izaberite svoje Naocale (Moguci ID od 1 do 30)\nNaocale Kostaju: {FFFFFF}599$\n\n{48E31C}___________________________________________________","Kupi","Izlaz");
return 1;
}
}
if(strcmp(cmd, "/naocale", true) == 0)
{
if(PlayerInfo[playerid][pNaocale] > 0)
{
    new skin = GetPlayerSkin(playerid);
    if(wearg[playerid] == 1)
    {
        RemovePlayerAttachedObject(playerid,2);
        wearg[playerid] = 0;
        SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Skinuo si svoje naocale!");
        GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s uzima naocale i skida ih sa glave.", sendername);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        return 1;
    }
    if(wearg[playerid] == 0)
    {
        SetPlayerAttachedObject(playerid, 2, PlayerInfo[playerid][pNaocale], 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
        wearg[playerid] = 1;
        SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Stavio si svoje naocale!");
        GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s uzima naocale i stavlja ih.", sendername);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        return 1;
    }
}
return 1;


Ovo je novo sta sam ja stavija u dialog if(strcmp(cmd, "/kupinaocale", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
    if(!PlayerToPoint(2.0,playerid,2069.3113,-1773.7755,13.5595))
{
    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste kod Glasses Shop-a.");
    return 1;
}
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Izaberi naocale?", "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30", "Kupi", "Izlaz");
return 1;
}
}
if(strcmp(cmd, "/naocale", true) == 0)
{
if(PlayerInfo[playerid][pNaocale] > 0)
{
    new skin = GetPlayerSkin(playerid);
    if(wearg[playerid] == 1)
    {
        RemovePlayerAttachedObject(playerid,2);
        wearg[playerid] = 0;
        SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Skinuo si svoje naocale!");
        GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s uzima naocale i skida ih sa glave.", sendername);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        return 1;
    }
    if(wearg[playerid] == 0)
    {
        SetPlayerAttachedObject(playerid, 2, PlayerInfo[playerid][pNaocale], 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
        wearg[playerid] = 1;
        SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Stavio si svoje naocale!");
        GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s uzima naocale i stavlja ih.", sendername);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        return 1;
    }
}
return 1;
}

Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Trazim Skriptera! Nagrada Head Admin

Predug ti je tekst u dialogu...
Ono _________________________________ makni..
Poslednja Izmena: Decembar 31, 2011, 14:15:48 POSLE PODNE od Lucky Luciano

Citat: Lucky Luciano poslato Decembar 31, 2011, 14:01:42 POSLE PODNE
Predug ti je tekst u dialogu...
Ono _________________________________ makni..


Aloooo

if(strcmp(cmd, "/kupinaocale", true) == 0)
{
       if(IsPlayerConnected(playerid))
   {
    if(!PlayerToPoint(2.0,playerid,2069.3113,-1773.7755,13.5595))
{
   SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste kod Glasses Shop-a.");
   return 1;
}
ShowPlayerDialog(playerid,DIALOG_GLASSES,DIALOG_STYLE_INPUT,"{F3FF02}[Glasses Shop]","{48E31C}___________________________________________________\n\n{00C0FF}Izaberite svoje Naocale (Moguci ID od 1 do 30)\nNaocale Kostaju: {FFFFFF}599$\n\n{48E31C}___________________________________________________","Kupi","Izlaz");
return 1;
}
}
if(strcmp(cmd, "/naocale", true) == 0)
{
if(PlayerInfo[playerid][pNaocale] > 0)
{
    new skin = GetPlayerSkin(playerid);
    if(wearg[playerid] == 1)
    {
        RemovePlayerAttachedObject(playerid,2);
        wearg[playerid] = 0;
       SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Skinuo si svoje naocale!");
       GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s uzima naocale i skida ih sa glave.", sendername);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       return 1;
    }
   if(wearg[playerid] == 0)
   {
       SetPlayerAttachedObject(playerid, 2, PlayerInfo[playerid][pNaocale], 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
       wearg[playerid] = 1;
       SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Stavio si svoje naocale!");
       GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s uzima naocale i stavlja ih.", sendername);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       return 1;
   }
}
return 1;


OVO RADI, ALI ONO DRUGO NE RADI!
Poslednja Izmena: Decembar 31, 2011, 14:06:20 POSLE PODNE od Tong1950Po
Trazim Skriptera! Nagrada Head Admin

Ispravio sam. Reci koja komanda ti neradi (/kupinaocale ili /naocale)

bgt..... Na ne radi mi /kupinaocale kad izaberem naocale i stisnem Kupi nece da mi kupi ! to je problem!!!!!!
Trazim Skriptera! Nagrada Head Admin

Izvoli:

if(strcmp(cmd, "/kupinaocale", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
    if(PlayerToPoint(2.0,playerid,2069.3113,-1773.7755,13.5595))
{
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Izaberi naocale?", "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30", "Kupi", "Izlaz");
    return 1;
}
else
{
SendClientMessage(playerid, WHITE, "({FF0000}Greska!{FFFFFF}) Niste kod Glasses Shop-a.");
return 1;
    }
}
}

EDIT: Ne radi ,daj nemoj vise se javljat svako malo davas krive informacije pLSS!
Poslednja Izmena: Decembar 31, 2011, 14:40:50 POSLE PODNE od Tong1950Po
Trazim Skriptera! Nagrada Head Admin

Mr.Gagi

A kako si uradio pod OnDialogResponse?

Da ti dadem cod?
EDIT: Nisam nista?
Poslednja Izmena: Decembar 31, 2011, 18:45:56 POSLE PODNE od Tong1950Po
Trazim Skriptera! Nagrada Head Admin