SA-MP Forums Archive
Checkout Help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Checkout Help! (/showthread.php?tid=514042)



Checkout Help! - edzis84 - 19.05.2014

I'm having the following problem

Код:
Dialog:Checkout(playerid, response, listitem, inputtext[])
{
	new vehicle = GetPlayerVehicleID(playerid);
	if(response)
		{
		    GivePlayerMoney(playerid, -Checkout);
		    SCM(playerid, -1, "Text");
		    if(Radio == 1)
			{
		 		PlayerInfo[playerid][Radio] = 1;
			}
			else if(Toolbox == 1)
			{
			    SCM(playerid, -1, "Tralalalala");
			}
		    
		}
		else
		{
		    Checkout = 0;
		}
		return 1;
}
Tralalalala is now showing, how to make it show up?


Re: Checkout Help! - rumen98 - 19.05.2014

Wtf dialog is that thing? I think this is not PAWN or just I have not seen such a thing


Re: Checkout Help! - edzis84 - 19.05.2014

It is pawn, called easydialogs, makes your life more simple! anything else is the same


Re: Checkout Help! - edzis84 - 19.05.2014

Really no one? +rep


Re: Checkout Help! - JFF - 19.05.2014

What do u mean? if u have one radio it stays one when u buy it again?


Re: Checkout Help! - edzis84 - 19.05.2014

Код:
Dialog:Checkout(playerid, response, listitem, inputtext[])
{
	new vehicle = GetPlayerVehicleID(playerid);
	if(response)
		{
		    GivePlayerMoney(playerid, -Checkout);
		    SCM(playerid, -1, "Text");
		    if(Radio == 1)
			{
		 		PlayerInfo[playerid][Radio] = 1;
			}
			else if(Toolbox == 1)
			{
			    SCM(playerid, -1, "Tralalalala");
			}
		    
		}
		else
		{
		    Checkout = 0;
		}
		return 1;
}
How to make tat Tralalalalala show as well?


Re: Checkout Help! - JFF - 19.05.2014

pawn Код:
Dialog:Checkout(playerid, response, listitem, inputtext[])
{
    new vehicle = GetPlayerVehicleID(playerid);
    if(response)
        {
            GivePlayerMoney(playerid, -Checkout);
            SCM(playerid, -1, "Text");
            if(Radio == 1)
            {
                PlayerInfo[playerid][Radio] = 1;
            }
            if(Toolbox == 1)
            {
                SCM(playerid, -1, "Tralalalala");
            }
           
        }
        else
        {
            Checkout = 0;
        }
        return 1;
}
he should have toolbox = 1


Re: Checkout Help! - edzis84 - 19.05.2014

U made me laugh

Still looking for help


Re: Checkout Help! - Fred1993 - 19.05.2014

Quote:

Dialog:Checkout(playerid, response, listitem, inputtext[])
{
new vehicle = GetPlayerVehicleID(playerid);
if(response)
{
GivePlayerMoney(playerid, -Checkout);
SCM(playerid, -1, "Text");
if(Radio == 1)
{
PlayerInfo[playerid][Radio] = 1;
}
if(Toolbox == 1)
{
SCM(playerid, -1, "Tralalalala");
}

}
else
{
Checkout = 0;
}
return 1;
}

it must be somthing like this..
Remove "else" from
Quote:

else if(Toolbox == 1)




Re: Checkout Help! - JFF - 19.05.2014

Quote:
Originally Posted by Fred1993
Посмотреть сообщение
it must be somthing like this..
Remove "else" from
I already told him that read the replies