29.08.2016, 13:44
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
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;
}

