house /exit problem
#1

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
Reply
#2

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

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;
}
}
}
Reply
#4

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

even faction hqs wont open but bisnesses do
Reply
#6

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

how do i fix that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)