dialog PROBLEM pomoc itno je

Započeo [IF] mariomako, Jun 14, 2010, 11:12:17 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Radim moju prvu filterskriptu i sve sam uradio i kad otidem na to mjesto da kupim oruzje izberem neko oruzje i nece mi dati nisto

// Kupi oruzje by: mariomako //
//  13.6.2010                   //

#include <a_samp>

#define COLOR_RED 0xAA3333AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA

forward oruzjezatvori();

new oruzje;
new oruzjekapija;

public OnFilterScriptInit()
{
    Create3DTextLabel("Koristite /oruzje da biste kupili oruzje",COLOR_RED,1295.1526,-986.1299,32.6953,10.0, 0);
oruzjekapija = CreateObject(1966, 1288.3345947266, -966.67102050781, 34.04122543335, 0, 0, 0);
CreateObject(1508, 1288.0283203125, -1005.8024291992, 31.464336395264, 0, 0, 87.339508056641);
CreateObject(2567, 1295.9028320313, -991.88818359375, 33.622913360596, 0, 0, 0);
CreateObject(3576, 1296.2181396484, -979.28491210938, 33.187984466553, 0, 0, 0);
CreateObject(2991, 1297.0103759766, -985.62664794922, 32.323047637939, 0, 0, 268.68713378906);
CreateObject(2064, 1291.8564453125, -994.07690429688, 32.324531555176, 0, 0, 177.38134765625);
CreateObject(1550, 1297.841796875, -981.47283935547, 32.088653564453, 0, 0, 0);
CreateObject(2035, 1296.8682861328, -984.21276855469, 32.977542877197, 0, 0, 0);
CreateObject(2036, 1296.8542480469, -985.20257568359, 32.987030029297, 0, 0, 0);
CreateObject(2044, 1297.3366699219, -986.02069091797, 32.980640411377, 0, 0, 0);
CreateObject(2045, 1297.3116455078, -987.23883056641, 33.04598236084, 0, 0, 0);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/oruzje", true) == 0)
    {
       if(IsPlayerInRangeOfPoint(playerid, 5.0,1295.1526,-986.1299,32.6953))
       {
        ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\nDeagle 100$\nSawnOff 200$\nM4 250$\nAK47 250$\nRifle 300$", "Kupi", "Otkazi");
       }
   return 1;
    }
    if (strcmp("/otvori", cmdtext, true, 10) == 0)
{
MoveObject(oruzjekapija,11288.3345947266, -966.67102050781, 30.04122543335, 2.00);
SetTimer("oruzjezatvori", 2000, 0);
SendClientMessage(playerid,COLOR_GREEN,"Otvaras kapiju za prodavnicu oruzjem...");

    return 1;
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == oruzje)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid,COLOR_RED,"Kupio si SDPistol sa 100 kursuma za 100$.");
GivePlayerWeapon(playerid,23,100);
GivePlayerMoney(playerid,-100);
    }
    if(listitem == 1)
{
SendClientMessage(playerid,COLOR_RED,"Kupio si Deagle sa 100 kursuma za 100$.");
GivePlayerWeapon(playerid,24,100);
GivePlayerMoney(playerid,-100);
    }
    if(listitem == 2)
{
SendClientMessage(playerid,COLOR_RED,"Kupio si SawnOff sa 100 kursuma za 200$.");
GivePlayerWeapon(playerid,26,100);
GivePlayerMoney(playerid,-200);
    if(listitem == 3)
{
SendClientMessage(playerid,COLOR_RED,"Kupio si M4 sa 100 kursuma za 250$.");
GivePlayerWeapon(playerid,31,100);
GivePlayerMoney(playerid,-250);
    }
    if(listitem == 4)
{
SendClientMessage(playerid,COLOR_RED,"Kupio si AK47 sa 100 kursuma za 250$.");
GivePlayerWeapon(playerid,30,100);
GivePlayerMoney(playerid,-250);
    }
    if(listitem == 5)
{
SendClientMessage(playerid,COLOR_RED,"Kupio si Rifle sa 100 kursuma za 300$.");
GivePlayerWeapon(playerid,33,100);
GivePlayerMoney(playerid,-300);
    }
    }
    }
return 1;
}
return 0;
}

public oruzjezatvori()
{
    MoveObject(oruzjekapija,1288.3345947266, -966.67102050781, 34.0412254333, 2.00);
    return 1;
}

ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\nDeagle 100$\nSawnOff 200$\nM4 250$\nAK47 250$\nRifle 300$", "Kupi", "Otkazi"); 
ovo gore promijeni u ovo dolje...

ShowPlayerDialog(playerid,oruzje, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\nDeagle 100$\nSawnOff 200$\nM4 250$\nAK47 250$\nRifle 300$", "Kupi", "Otkazi"); 

Citat: Sam ツ poslato Jun 14, 2010, 11:45:35 PRE PODNE
ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\nDeagle 100$\nSawnOff 200$\nM4 250$\nAK47 250$\nRifle 300$", "Kupi", "Otkazi"); 
ovo gore promijeni u ovo dolje...

ShowPlayerDialog(playerid,oruzje, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\nDeagle 100$\nSawnOff 200$\nM4 250$\nAK47 250$\nRifle 300$", "Kupi", "Otkazi"); 

da,da sjetio sam se

UPDATE: a zasto samo prvi 3 oruzja oce da mi kupuje???
Poslednja Izmena: Jun 14, 2010, 12:25:22 POSLE PODNE od mariomako