POMOC

Započeo black_dota, Jul 11, 2010, 18:39:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

black_dota

E ovako ja opet pisem o dialozima jer meni su svi pomagali i pratio sam sve zive tutove a kada napravim dialog i kada kucam komandu koju ocu da mi se taj dialog otvori on se ne otvori zasto !!!! evo koda cele fs:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Express Guns by d0tA_bL4Ck");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Express Guns by d0tA_bL4Ck");
print("----------------------------------\n");
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/guns", true) == 0)
    {
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "~Express Guns~","Colt 45.(100$)\nSDPistol(125$)\nDeagle(200$)\nTec9(230$)\nUzi(250$)\nMP5(300$)\nSawn-Off(325$)\nShotgun(330$)\nCombat-Shotgun(375$)\nAK47(1500$)\nM4(2000$)\nRifle(2105$)\nSniper Rifle(2500$)\nMelle" , "Izaberi", "Otkazi");
return 1;
    }
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 0)
{
if(response)
{
if(listitem == 0)//Colt 45.
{
if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
GivePlayerMoney(playerid, -100);
GivePlayerWeapon(playerid, 22,200);
}
if(listitem == 1)//SDPistol
{
if(GetPlayerMoney(playerid) < 125) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
GivePlayerMoney(playerid, -125);
GivePlayerWeapon(playerid, 23,200);
}
if(listitem == 2)//Deagle
  {
  if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
  GivePlayerMoney(playerid, -200);
  GivePlayerWeapon(playerid, 24,200);
  }
    if(listitem == 3)//Tec9
    {
    if(GetPlayerMoney(playerid) < 230) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -230);
    GivePlayerWeapon(playerid, 32,230);
    }
    if(listitem == 4)//UZI
    {
    if(GetPlayerMoney(playerid) < 250) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -250);
    GivePlayerWeapon(playerid, 28,250);
    }
    if(listitem == 5)//MP5
    {
    if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -300);
    GivePlayerWeapon(playerid, 29,300);
    }
    if(listitem == 6)//Sawn-Off
    {
    if(GetPlayerMoney(playerid) < 325) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -325);
    GivePlayerWeapon(playerid, 26,150);
    }
    if(listitem == 7)//Shotgun
    {
    if(GetPlayerMoney(playerid) < 330) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -330);
    GivePlayerWeapon(playerid, 25,150);
    }
    if(listitem == 8)//Combat Shotgun
    {
    if(GetPlayerMoney(playerid) < 375) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -375);
    GivePlayerWeapon(playerid, 27,200);
    }
    if(listitem == 9)//AK47
    {
    if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -1500);
    GivePlayerWeapon(playerid, 30,300);
    }
    if(listitem == 10)//M4
    {
    if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -2000);
    GivePlayerWeapon(playerid, 31,350);
    }
    if(listitem == 11)//Rifle
    {
    if(GetPlayerMoney(playerid) < 2105) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -2105);
    GivePlayerWeapon(playerid, 33,500);
    }
    if(listitem == 12)//Sniper Rifle
    {
    if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, 0xFFFFFF, "Nemas dovoljno novca.");
    GivePlayerMoney(playerid, -2500);
GivePlayerWeapon(playerid, 34,250);
}
}
}
return 1;
}

+ ocu da mi pomognete i dodate tamo ispod snipera melle i da bude prvi noz pa lopata pa palica za golf onda katana i motorna testera i nista vise plz help!!!!

Takav problem imam i ja pa evo da neotvaram novu temu da tu pitam isto to samo drukcije komande

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....

black_dota

Ajde pomagajte nam  :(

LOCK-AJTE snasao sam se.
Poslednja Izmena: Jul 12, 2010, 14:23:59 POSLE PODNE od black_dota

Omg, pa onda napisi drugima da znaju, npr. skillzu :S
Aequam memento rebus in arduis servare mentem.