SA-MP Forums Archive
[HELP] error: you are not near any house (in-game) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] error: you are not near any house (in-game) (/showthread.php?tid=554350)



[HELP] error: you are not near any house (in-game) - shadow177 - 03.01.2015

[FIXED]
thnx to sew_sumi.


Re: [HELP] error: you are not near any house (in-game) - ball - 03.01.2015

Show code when you use h_ID array for player somehting like

Код:
h_ID[playerid] = ...



Re: [HELP] error: you are not near any house (in-game) - shadow177 - 03.01.2015

Код:
h_ID[playerid] = x;
this ?


Re: [HELP] error: you are not near any house (in-game) - Riddick94 - 03.01.2015

That array:
pawn Код:
h_ID[playerid] = SOMETHING
Must be used by you somewhere in a script, for example, you could've use it when you enter a house pickup, so it will assign ID of the house to the player's array. As long as you don't do it and you are holding value of "-1" it will always pop up with the same message, that you are not near any house.

So, just find where in your script you are assigning value to that array, show how you do it and where.


Re: [HELP] error: you are not near any house (in-game) - ball - 03.01.2015

Quote:
Originally Posted by shadow177
Посмотреть сообщение
Код:
h_ID[playerid] = x;
this ?
Yes, show full code of this.


Re: [HELP] error: you are not near any house (in-game) - shadow177 - 04.01.2015

this ?

Код:
	for(new x=0; x<MAX_HOUSES; x++)
	{
	    if(pickupid == hInfo[x][hPickup])
	    {
	        h_ID[playerid] = x;
     	}
	}
    return 1;



Re: [HELP] error: you are not near any house (in-game) - shadow177 - 04.01.2015

bump, please help guys


Re: [HELP] error: you are not near any house (in-game) - JaKe Elite - 05.01.2015

Are you even sure you are in the house? Did you reload the script or something, The gamemode is found to be tricky when you reload it.


Re: [HELP] error: you are not near any house (in-game) - shadow177 - 05.01.2015

what ? i should be in house o.O ? or on house icon ?
the problem is just that when i try to /buyhouse even when i stand on icon , you can test it by yourself bro...
it shows this :[ERROR]you are not near any house.


Re: [HELP] error: you are not near any house (in-game) - ball - 05.01.2015

Oh my ... try do it on your own, do debug, just try.

Код:
	for(new x; x != MAX_HOUSES; x++)
	{
		if(pickupid == hInfo[x][hPickup])
		{
			h_ID[playerid] = x;
			printf("(loop) houseID: %d", x);
			break;
		}
	}
	printf("houseID: %d", h_ID[playerid]);
	return 1;
And give more code if this won't work. Gave few lines and happy ....