04.08.2012, 18:42
PHP код:
if(HouseInfo[i][hOwned] = false)
I have all the defines like define like:
PHP код:
#define MAX_HOUSES 100
PHP код:
new HouseInfo[MAX_HOUSES][hInfo];
if(HouseInfo[i][hOwned] = false)
#define MAX_HOUSES 100
new HouseInfo[MAX_HOUSES][hInfo];
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2789.1965,-181.2355,10.0625))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"blablabla",3000,5);
}
else
{
GameTextForPlayer(playerid,"blablablabla",3000,5);
}
}
{
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2789.1965,-181.2355,10.0625))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"blablabla",3000,5);
}
else
{
GameTextForPlayer(playerid,"blablablabla",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2786.7607,-175.4513,10.0625))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2790.3088,-168.4088,7.2020))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2791.5959,-146.0833,7.8594))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2786.9595,-118.3625,10.0625))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2790.2976,-110.8887,7.2020))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2791.5867,-107.4266,7.8594))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2786.9756,-89.7384,10.0625))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,-2790.2649,-82.7106,7.1953))
{
{
if(HouseInfo[i][hOwned] = false)
GameTextForPlayer(playerid,"House for sale",3000,5);
}
else
{
GameTextForPlayer(playerid,"House is owned",3000,5);
}
}
return 1;
}
for(new h = 0; h < sizeof(hInfo); h++) {
//stuff here
}