[Pomoc] Dialog

Započeo CColucci..
26. Dec. 2014. Zaključano
222
pregleda
2
postova
Jeffry_Vasquez
3
Hustler
26. Dec. 2014.
Skripta koju koristim:Editujem
Detaljan opis problema: Evoraio sam neki dialog za posao i kad ga ubacim izbacuje mi errore negdje gore na pocetku skripte.Ja mislim da sam negdje zagradu zaboravio.
Dio skripte:
if(dialogid == DILER_ORE) //Diler oruzija
{
if(!response) return 1; if(response)
{
if(listitem == 0)
{
  new aha = PlayerInfo;
  if(aha >= 100)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Napravili ste Desert Deagle.");
PlayerInfo -= 10;
SetPlayerWeapon(24,100);
}
                    else if(aha < 100)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Nemate dovoljno materijala.");

    }
}
if(listitem == 1)
{
  new aha = PlayerInfo;
  if(aha >= 120)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Napravili ste MP5.");
PlayerInfo -= 120;
SetPlayerWeapon(29,100);
}
                    else if(aha < 120)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Nemate dovoljno materijala.");

}
}
if(listitem == 2)
{
  new aha = PlayerInfo;
  if(aha >= 180)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Napravili ste Shotgun.");
PlayerInfo -= 180;
SetPlayerWeapon(25,100);
}
                    else if(aha < 180)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Nemate dovoljno materijala.");

}
}
if(listitem == 3)
{
  new aha = PlayerInfo;
  if aha >= 200)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Napravili ste AK-47.");
PlayerInfo -= 200;
SetPlayerWeapon(30,250);
}
                    else if(aha < 200)
{
SCM(playerid,WHITE,"{FFFFFF}:{FFF1AF} Nemate dovoljno materijala.");


}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Rudimental
5
OG Legend
26. Dec. 2014.
Zaboravio si zagrade na kraju falile su ti jos 2 pogledaj jel sada sve ok

if(dialogid == DILER_ORE) //Diler oruzija
{
if(!response) return 1; if(response)
{
if(listitem == 0)
{
new aha = PlayerInfo;
if(aha >= 100)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Napravili ste Desert Deagle.");
PlayerInfo -= 10;
SetPlayerWeapon(24,100);
}
else if(aha < 100)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Nemate dovoljno materijala.");
}
}
if(listitem == 1)
{
new aha = PlayerInfo;
if(aha >= 120)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Napravili ste MP5.");
PlayerInfo -= 120;
SetPlayerWeapon(29,100);
}
else if(aha < 120)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Nemate dovoljno materijala.");
}
}
if(listitem == 2)
{
new aha = PlayerInfo;
if(aha >= 180)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Napravili ste Shotgun.");
PlayerInfo -= 180;
SetPlayerWeapon(25,100);
}
else if(aha < 180)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Nemate dovoljno materijala.");
}
}
if(listitem == 3)
{
new aha = PlayerInfo;
if aha >= 200)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Napravili ste AK-47.");
PlayerInfo -= 200;
SetPlayerWeapon(30,250);
}
else if(aha < 200)
{
SCM(playerid,WHITE,"{FFFFFF}server uklonjen!:{FFF1AF} Nemate dovoljno materijala.");
}
}
}
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha