Jump to content
  • 0

pomoc Dialog správne ukončenie


HDpawner

Dotaz

Zdravím, neviem si poradiť so spojením týchto dvoch vecí :

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == W)
	{
		if(listitem == 0)
		{
		}
		if(listitem == 1)
		{
			new pName[30], string[256];
			new hsway[64]="CH/Info.cfg";
			SetPlayerPosEx(playerid, 1, 2, 3);
			Server[LV]++;
			dini_IntSet("CH/Info.cfg","LasVenturas",Server[LV]);
			GetPlayerName(playerid, pName, 30);
			format(string, 256, "[! Server !] Las Venturas {87C7E1}%s (%dx)!", pName, dini_Int(hsway,"LasVenturas"));
			SendClientMessageToAll(C_WARP, string);
			GameTextForPlayer(playerid, "Las Venturas",2500,1);
		}
		if(listitem == 2)
		{
			PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
			GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
		}
	}
}

	if(dialogid == DM)
	{
		if(listitem == 0)
		{
		}
		if(listitem == 1)
		{
			new pName[30], string[256];
			new hsway[64]="CH/Info.cfg";
			SetPlayerPosEx(playerid, 1, 2, 3);
			Server[LV]++;
			dini_IntSet("CH/Info.cfg","LasVenturas",Server[LV]);
			GetPlayerName(playerid, pName, 30);
			format(string, 256, "[! Server !] Las Venturas {87C7E1}%s (%dx)!", pName, dini_Int(hsway,"LasVenturas"));
			SendClientMessageToAll(C_WARP, string);
			GameTextForPlayer(playerid, "Las Venturas",2500,1);
		}
		if(listitem == 2)
		{
			PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
			GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
		}
	}
}

Za každú radu budem rad.

Edited by HDpawner
Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

  • 0

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == W)
    {
        if(listitem == 0)
        {
        }
        if(listitem == 1)
        {
            new pName[30], string[256];
            new hsway[64]="CH/Info.cfg";
            SetPlayerPosEx(playerid, 1, 2, 3);
            Server[LV]++;
            dini_IntSet("CH/Info.cfg","LasVenturas",Server[LV]);
            GetPlayerName(playerid, pName, 30);
            format(string, 256, "[! Server !] Las Venturas {87C7E1}%s (%dx)!", pName, dini_Int(hsway,"LasVenturas"));
            SendClientMessageToAll(C_WARP, string);
            GameTextForPlayer(playerid, "Las Venturas",2500,1);
        }
        if(listitem == 2)
        {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
            GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
        }
    }

    if(dialogid == DM)
    {
        if(listitem == 0)
        {
        }
        if(listitem == 1)
        {
            new pName[30], string[256];
            new hsway[64]="CH/Info.cfg";
            SetPlayerPosEx(playerid, 1, 2, 3);
            Server[LV]++;
            dini_IntSet("CH/Info.cfg","LasVenturas",Server[LV]);
            GetPlayerName(playerid, pName, 30);
            format(string, 256, "[! Server !] Las Venturas {87C7E1}%s (%dx)!", pName, dini_Int(hsway,"LasVenturas"));
            SendClientMessageToAll(C_WARP, string);
            GameTextForPlayer(playerid, "Las Venturas",2500,1);
        }
        if(listitem == 2)
        {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
            GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
        }
    }
   return false;
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...