Pokvareni dialog koji god tut da pratim

Započeo black_dota, Jul 10, 2010, 16:53:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

black_dota

Evo cele fs samo pobrisao sam sve nepotrebno kako se nebi zajebao:
#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))
{
        ShowPlayerDialog(playerid, 1, 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[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
    if(dialogid == DIALOG_STYLE_LIST)
{
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);
            }
            if(listitem == 13)//Melle
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "~Express Guns~","Knife(50$)\nLopata(55$)\nStap za Golf(55$)\nKatana(75$)\nChainsaw(2000$)", "Izaberi", "Otkazi");
      }
}
return 1;
}
return 1;
}


Evo erora:
C:\Users\Stefan Katic\Desktop\Stuff\server 0.3\nesto moje\(FS)Express Guns V1.0.pwn(136) : error 030: compound statement not closed at the end of file (started at line 41)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

i da si uspeo compile nema da ti radi stavio si krive id dialoze i pluse kad izaberesto expres guns nece ti dati nista samo ti pokaze dialog  i ako izaberes nema da dobijes npr lopatu negoto prvu oruzje od dialog id 1

#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))
{
        ShowPlayerDialog(playerid, 1, 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 == 1)
{
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);
            }
            if(listitem == 13)//Melle
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "~Express Guns~","Knife(50$)\nLopata(55$)\nStap za Golf(55$)\nKatana(75$)\nChainsaw(2000$)", "Izaberi", "Otkazi");
      }
}
return 1;
}
return 1;
}


ovo radi

black_dota

Citat: Mario Velickovski poslato Jul 10, 2010, 17:03:33 POSLE PODNE
i da si uspeo compile nema da ti radi stavio si krive id dialoze i pluse kad izaberesto expres guns nece ti dati nista samo ti pokaze dialog  i ako izaberes nema da dobijes npr lopatu negoto prvu oruzje od dialog id 1

#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))
{
        ShowPlayerDialog(playerid, 1, 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 == 1)
{
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);
            }
            if(listitem == 13)//Melle
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "~Express Guns~","Knife(50$)\nLopata(55$)\nStap za Golf(55$)\nKatana(75$)\nChainsaw(2000$)", "Izaberi", "Otkazi");
      }
}
return 1;
}
return 1;
}


ovo radi
hvala ti ti si jedini koji mi je dosta pomogao oko ovoga tnx puno.