[POMOC] GTA:RP Dialog Treci put otvaram ajde neko vise da mi objasni

Započeo black_dota, Decembar 26, 2010, 12:46:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

black_dota

Trazio sam i nasao 3 strane o dialozima,ali nijedan mi nije pomogao :S

Ovako,krenuo sam da radim danas neki sistem za kupovinu neceg i uradim taj sistem dobro sve,stavim u dialog i sve radi sa tim sistemom
e sad pre toga sam napravio dialog za /drivein u burger kingu i nije hteo da radi kad sam ubacio ovaj sistem za kupovinu
prvi put je bilo da pomesa list iteme
a kad sam promenio ideve iz driveinburger u 112 uopste ne reaguje kad izaberem nesto sa liste

sve mi je bez errora ali nece da radi kad izaberem u dialogu item
sledeci dialog je taj za kupovinu (113 mu je id) i on radi normalno

Vec 3 put otvaram temu i niko mi ne pomaze,a na pocetnoj strani pise:

"Puno kvalitetnih skripti i skriptera koji su vam u svako doba dana voljni pomoci."

ja koliko vidim niko ne pomaze


Zlatan_Ibrahimovic

E'o primjer mog menu dialoga za burg i slicno...

#define BURG 1313

stock DajHPIgracu(playerid,Float:Health)
{
   new Float:health; GetPlayerHealth(playerid,health);
   SetPlayerHealth(playerid,health+Health);
}

   if(dialogid == BURG)
   {
if(response)
{
  if(listitem == 0)
{
GivePlayerMoney(playerid, - 50);
DajHPIgracu(playerid, 50.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
                     format(string, sizeof(string), "* %s je pojeo hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
if(listitem == 1)
{
GivePlayerMoney(playerid, - 40);
DajHPIgracu(playerid, 40.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
                     format(string, sizeof(string), "* %s je pojeo Mini Burger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
if(listitem == 2)
{
GivePlayerMoney(playerid, - 20);
DajHPIgracu(playerid, 30.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
                     format(string, sizeof(string), "* %s je popio Coca-Colu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
}
return 1;
}


if(strcmp(cmd, "/burgmenu", true) == 0)
   {
   if(PlayerToPoint(10.0,playerid,378.6681,-67.4362,1000.5123)) primjer koord.
   {
           ShowPlayerDialog(playerid, BURG, DIALOG_STYLE_LIST, "Burg", "Hamburger\nMini Burger\nCoca-Cola ", "U redu", "Odustani");//
       }
       return 1;
   }
Poslednja Izmena: Decembar 26, 2010, 13:14:57 POSLE PODNE od Luis Mendoza

black_dota

Citat: Luis Mendoza poslato Decembar 26, 2010, 13:10:41 POSLE PODNE
E'o primjer mog menu dialoga za burg i slicno...

#define BURG 1313

stock DajHPIgracu(playerid,Float:Health)
{
    new Float:health; GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid,health+Health);
}

    if(dialogid == BURG)
    {
if(response)
{
    if(listitem == 0)
{
GivePlayerMoney(playerid, - 50);
DajHPIgracu(playerid, 50.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
                      format(string, sizeof(string), "* %s je pojeo hamburger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
if(listitem == 1)
{
GivePlayerMoney(playerid, - 40);
DajHPIgracu(playerid, 40.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
                      format(string, sizeof(string), "* %s je pojeo Mini Burger.", sendername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
if(listitem == 2)
{
GivePlayerMoney(playerid, - 20);
DajHPIgracu(playerid, 30.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
                      format(string, sizeof(string), "* %s je popio Coca-Colu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
}
return 1;
}


if(strcmp(cmd, "/burgmenu", true) == 0)
    {
    if(PlayerToPoint(10.0,playerid,378.6681,-67.4362,1000.5123)) primjer koord.
    {
            ShowPlayerDialog(playerid, BURG, DIALOG_STYLE_LIST, "Burg", "Hamburger\nMini Burger\nCoca-Cola ", "U redu", "Odustani");//
        }
        return 1;
    }


isto mi je tako ne radi :S
Citat: eXtreme poslato Decembar 26, 2010, 12:50:37 POSLE PODNE
Daj mi on dialog response CEO!!!



public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new Float:PlayerHealth;
    new Health = GetPlayerHealth(playerid, PlayerHealth);
   
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 12346 || dialogid == 12347)
{
    if(strlen(inputtext))
    {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"POGRESAN PASSWORD\nMolimo ukucajte tacan password:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Cancel");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
    if(strlen(inputtext))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Taj username je vec preuzet,uzmi drugi nickname!");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobrodosli, %s\nVi nemate account.\nMolimo Registrujte se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"|iNFERNO REG System|",regstring,"Register","Cancel");
}
}
}
else
{
Kick(playerid);
}
if(dialogid == 112)//Dialog za Burger
{
if(response)
{
if(listitem == 0)
{
    if(Health <= 30.0)
  {
//neki moj kod
}
else
{
    //neki moj kod
}
}
if(listitem == 1)
{
if(Health <= 30.0)
          {
          //neki moj kod
}
else
{
            //neki moj kod
}
}
if(listitem == 2)
{
if(Health <= 30.0)
          {
          //neki moj kod
}
else
{
            //neki moj kod
}
}
if(listitem == 3)
{
if(Health <= 30.0)
          {
          //neki moj kod
}
else
{
            //neki moj kod
}
}
}
}
if(dialogid == 113)//drugi dialog
{
    if(response)
    {
    if(listitem == 0)
    {
      if(PlayerInfo[playerid][pNesto] == 1)
        {
//neki moj kod
}
else
{
            //neki moj kod
}
}
if(listitem == 1)
    {
      if(PlayerInfo[playerid][pNesto] == 0)
        {
//neki moj kod
}
else
{
            //neki moj kod
}
}
}
}
return 1;
}


neradi ovaj burger

Slobodno mozete staviti lock posto ovde niko nije voljan da nekom pomogne ko ceka 5 dana vec
Poslednja Izmena: Decembar 26, 2010, 18:31:50 POSLE PODNE od black_dota