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

[FIXED]
thnx to sew_sumi.
Reply
#2

Show code when you use h_ID array for player somehting like

Код:
h_ID[playerid] = ...
Reply
#3

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

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.
Reply
#5

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

this ?

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

bump, please help guys
Reply
#8

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.
Reply
#9

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.
Reply
#10

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 ....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)