Jump to content
  • 0

Question

Posted

Am vrut sa fac /report pe dialog

Am facut asta   

	if(strcmp(cmd, "/report", true) == 0 )
    {
	    if(IsPlayerConnected(playerid))
	    {
			ShowPlayerDialog(playerid,1434,DIALOG_STYLE_LIST,"/report","Intrebari\nRaporteaza un player\nSunt Blocat\nAm nevoie de un admin\nAlta problema","Select","Quit");
			return 1;
		}
		return 1;
	}

Dar daca dau pe intreabari,sunt blocat pe orice dialog nu imi apare fereastra aceea. 

if(dialogid == 1433 || dialogid == 1434)
	{
 		if(response)
		{
			if(listitem == 0) //
			{
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Te ascultam");
			}
			if(listitem == 1) //
			{
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "Multumim");
			}
}
}

Doar pentru intrebari sa testez dar nu apare in OnDialogResponse am adaugat asta.

6 answers to this question

Recommended Posts

  • 0
Posted
Acum 11 minute, w1zzan a spus:

up

incearca sa rescrii din nou si fale separat 

if(dialogid == 1433 || dialogid == 1434)

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
  • 0
Posted
Acum 11 minute, w1zzan a spus:

Nu stiu cum,mi le.poti fave tu.te rog?

sincer te-asi ajuta dar nu am timp acuma ca lucrez la un nou proiect de on-duty Mapper comenzi speciale si nu imi permite timpul ca ziua lucrez in c.a.t.v

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted

Nu inteleg de ce folosesti cifre in loc sa faci un enum cu toate dialogurile fara sa te complici.
 Incearca asa.

if(dialogid == 1434)
	{
	if(response)
		{
			switch(listitem)
			{
				case 0:
				{
					SendClientMessage(playerid, COLOR_LIGHTBLUE, "Te ascultam"); //intrebare
				}
				case 1:// si asa mai departe
				{
					SendClientMessage(playerid, COLOR_LIGHTBLUE, "Multumim");
				}
			}
		}
	}

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.