Script question
#1

Hey,

I have a houseupgrade command, but when I do it in game it does not work.

Код:
	}
	if(strcmp(cmd, "/houseupgrade", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pHouseAccepted] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You don't own a house!");
	            return 1;
	        }
		    else
		    {
			    ShowPlayerDialog(playerid,UPGRADEMENU1,DIALOG_STYLE_LIST,string,"House Interior Upgrade\nHouse Car Upgrade\nHouse Nametag Upgrade\nHouse Miscellaneous Upgrade","Proceed","Cancel");
			    return 1;
			}
		}
	 	return 1;
	}
That is my code, could someone please tell me why it does not work.
Reply


Messages In This Thread
Script question - by Tye Huntley - 03.10.2011, 05:44
Re: Script question - by TheLazySloth - 03.10.2011, 06:03
Re: Script question - by Tye Huntley - 03.10.2011, 06:19
Re: Script question - by TheLazySloth - 03.10.2011, 06:26
Re: Script question - by Tye Huntley - 03.10.2011, 06:35
Re: Script question - by GrimR - 03.10.2011, 06:39
Re: Script question - by TheLazySloth - 03.10.2011, 06:41
Re: Script question - by GrimR - 03.10.2011, 06:43
Re: Script question - by TheLazySloth - 03.10.2011, 06:48
Re: Script question - by Tye Huntley - 03.10.2011, 06:53

Forum Jump:


Users browsing this thread: 3 Guest(s)