house position error
#1

even if i am in range of a house it still says im not,i don;t know why

for(new i = 1; i <= 105; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
HouseInfo[i][hType] = type;
mysql_format(SQL,str,sizeof(str), "UPDATE houses SET `Type`='%d' WHERE `ID`='%d'",type,HouseInfo[i][hID]);
mysql_tquery(SQL,str,"","");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You aren't in range of any house");
return 1;
}
}
Reply


Messages In This Thread
house position error - by bosmania - 05.04.2019, 14:30
Re: house position error - by JesterlJoker - 05.04.2019, 15:44
Re: house position error - by Markski - 06.04.2019, 05:11

Forum Jump:


Users browsing this thread: 1 Guest(s)