Question
#1

I have 2 commands that for some reason don't work in game, would anyone have any idea whats wrong.

/buyhouse when i type that nothing happens

Код:
	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;
	        }
         	ShowPlayerDialog(playerid,UPGRADEMENU1,DIALOG_STYLE_LIST,string,"House Interior Upgrade\nHouse Car Upgrade\nHouse Nametag Upgrade\nHouse Miscellaneous Upgrade","Proceed","Cancel");
          	return 1;
           	}
		}
	/*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;
	}*/

	if(strcmp(cmd, "/buyhouse", true) == 0)
and /buylic

Код:
	/*if(pickupid == iLic)
	{
	    GameTextForPlayer(playerid, "~w~ /buylic to buy licenses", 5000, 5);
	    return 1;
	}*/
Код:
	/*if(strcmp(cmd, "/buylic", true) == 0)
	{
	    if(IsPlayerInRangeOfPoint(playerid,3.0,1490.2982,1305.6770,1093.2963))
	    {
	        ShowPlayerDialog(playerid, LICMENU, DIALOG_STYLE_LIST, "Buy License","Drivers License[$150]\nFly License[$1000]\nBoat License[$200]\nFishing License[$250]","Buy","Close");
		}
		else
		{
		    SendClientMessage(playerid, COLOR_WHITE, "      Server: Not at the DMV");
		    return 1;
		    }*/
Reply


Messages In This Thread
Question - by ConsoleX - 20.03.2011, 19:31
Re: Question - by ConsoleX - 20.03.2011, 22:28
Re: Question - by Kyle_Olsen - 20.03.2011, 22:43
Re: Question - by ConsoleX - 20.03.2011, 22:48
Re: Question - by ConsoleX - 22.03.2011, 00:30
Re: Question - by alpha500delta - 22.03.2011, 12:14
Re: Question - by ConsoleX - 22.03.2011, 18:38
Re: Question - by Too - 22.03.2011, 18:40
Re: Question - by ConsoleX - 22.03.2011, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)