house /exit problem -
RustySnowman x - 13.08.2012
i can /enter my house but when i type /exit i cant leave me house can someone help me out on this plz i got no errors ethier
Re: house /exit problem -
Cjgogo - 13.08.2012
Right now,with the GREAT help of Buddha I am visiualizing your code(and I can visiualize your code exactly,because I am a medium).The problem is in one of the lines.Don't GIVE US the code,everyone here can acces your code at NASA DataBase.
Re: house /exit problem -
RustySnowman x - 13.08.2012
if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
//printf("House :%d",i);
if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
if(HouseEntered[playerid] == i)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid,0);
HouseEntered[playerid] = 255;
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
return 1;
}
}
}
Re: house /exit problem -
KingHual - 13.08.2012
Quote:
Originally Posted by Cjgogo
Right now,with the GREAT help of Buddha I am visiualizing your code(and I can visiualize your code exactly,because I am a medium).The problem is in one of the lines.Don't GIVE US the code,everyone here can acces your code at NASA DataBase.
|
That was some pretty lame sarcasm.
OT: Show us the code.
Edit: you did post it now, let me give it a look
Re: house /exit problem -
RustySnowman x - 13.08.2012
even faction hqs wont open but bisnesses do
Re: house /exit problem -
Cjgogo - 13.08.2012
I will never get why newbies use PlayerToPoint,BUT NEVER,use IsPlayerInRangeOfPoint instead of PlayerToPoint on your code,and may work,but I am not sure,I mean your code looks fine,but there may be a problem with your DataBase
Re: house /exit problem -
RustySnowman x - 13.08.2012
how do i fix that