Cant Exit from houses
#1

Hey guys, still need help with /exit on a Godfather Edit.
this Cmd doesn't work! :/

May you help me with it?
Quote:

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]))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}
}

Reply
#2

Try using HouseInfo[i][variable] instead of HouseInfo[variable]
Reply
#3

I dont understand what you mean, sorry.
Isn't HouseInfo[variable] the same as HouseInfo[variable]?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)