Posts: 39
Threads: 17
Joined: Aug 2012
Reputation:
0
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
Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
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.
Posts: 39
Threads: 17
Joined: Aug 2012
Reputation:
0
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;
}
}
}
Posts: 2,286
Threads: 18
Joined: Jun 2010
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
Posts: 39
Threads: 17
Joined: Aug 2012
Reputation:
0
even faction hqs wont open but bisnesses do
Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
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