27.07.2016, 18:48
(
Последний раз редактировалось kampuman; 27.07.2016 в 21:31.
)
btw I got this GetHouseID! as you can see it returns to -255. but i don't know exactly how to fix it.
PHP код:
stock GetHouseID( playerid )
{
for ( new i = 0; i < MAX_HOUSES; i++ )
if ( IsPlayerInRangeOfPoint( playerid, 2.0, GetGVarFloat( "h_X", i ), GetGVarFloat( "h_Y", i ), GetGVarFloat( "h_Z", i ) ) )
return i;
return -255;
}