24.07.2011, 22:49
I really dont see what's wrong with that, maybe the variable i? but I setted it good.. atleast, I think so.
Anyways, does anyone has clue what's wrong down here? it is supposed to check if player has a house, and if he does, it will spawn him into his house's interior.
Thank you.
Anyways, does anyone has clue what's wrong down here? it is supposed to check if player has a house, and if he does, it will spawn him into his house's interior.
pawn Код:
else if(Player[playerid][House] != 0) {
for(new i = 0; i < sizeof(Houses); i++) {
if(Player[playerid][PrisonID] != 1) {
if(Player[playerid][PrisonID] != 2) {
Player[playerid][InHouse] = i;
SetPlayerInterior(playerid, Houses[i][hInteriorID]);
SetPlayerVirtualWorld(playerid, 55000+i);
SetPlayerPos(playerid, Houses[Player[playerid][House]][hInteriorX], Houses[Player[playerid][House]][hInteriorY], Houses[Player[playerid][House]][hInteriorZ]);
}
}
}
}
}