myhouses shows all houses
#1

hej there
im having a bug currently on my gamemode
it worked well before but now when i press /myhouses it shows all server houses and not my owned one
and idea and how to fix it please help me i really need this

here are codes

Код:
COMMAND:myhouses(playerid)
{
    new
        tmp[20];
	SendClientMessage(playerid, COLOR_WHITE, "{004080}====================== Your Houses: ===========================");
	//SendClientMessage(playerid, COLOR_WHITE, "There are the houses you own:");
	for(new i; i < sizeof(House); i++)
	{
	    format(tmp, sizeof(tmp), "Casa%d.txt", i);
	    if(!strcmp(House[i][tmpowner], PlayerName(playerid), false))
	    {
	        new zone[ 32 ];
	        GetZone(House[i][House_x],House[i][House_y],House[i][House_z], zone);
	        format(iStr, sizeof(iStr), "[ID: %d] [Rent Price: %s] [Till: %d] [Location: %s]", i, AddCommasToInt(dini_Int(tmp, "rentprice")), dini_Int(tmp, "till"), zone);
	        SendClientMessage(playerid, COLOR_LIGHTGREY, iStr);
	    }
	}
	SendClientMessage(playerid, COLOR_WHITE, "{004080}=====================================================");
	return 1;
}
Reply


Messages In This Thread
myhouses shows all houses - by ThatFag - 29.08.2016, 13:44
Re: myhouses shows all houses - by Konstantinos - 29.08.2016, 13:58
Re: myhouses shows all houses - by ThatFag - 29.08.2016, 14:06
Re: myhouses shows all houses - by ThatFag - 29.08.2016, 14:18
Re: myhouses shows all houses - by Konstantinos - 29.08.2016, 14:28
Re: myhouses shows all houses - by ThatFag - 29.08.2016, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)