22.07.2011, 15:01
pawn Код:
case ENTER_HOUSE_DIALOG:
{
if(response)
{
printf("[1] CurrentHouse: %d", CurrentHouse[playerid]);
if(CurrentHouse[playerid] == INVALID_HOUSE_ID)
{
printf("Message Sent [CurrentHouse: %d]", CurrentHouse[playerid]);
SendClientMessage(playerid, COLOR_ERROR, "Please re-enter the CP");
}
printf("[2] CurrentHouse: %d", CurrentHouse[playerid]);
SetPlayerPos(playerid, HouseInfo[CurrentHouse[playerid]][TeleX], HouseInfo[CurrentHouse[playerid]][TeleY], HouseInfo[CurrentHouse[playerid]][TeleZ]);
SetPlayerInterior(playerid, HouseInfo[CurrentHouse[playerid]][Interior]);
SendClientMessage(playerid, 0x00C4F6AA, "You have entered your house");
}
}
the message should only return if CurrentHouse[playerid] is INVALID_HOUSE_ID...
and another wird thing is that it prints
Код:
[17:04:30] [1] CurrentHouse: 1 [17:04:30] [2] CurrentHouse: 1