Cant Exit from houses - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cant Exit from houses (
/showthread.php?tid=145066)
Cant Exit from houses -
xynyx55 - 30.04.2010
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);
}
}
}
}
|
Re: Cant Exit from houses -
Hiddos - 30.04.2010
Try using HouseInfo[i][variable] instead of HouseInfo[variable]
Re: Cant Exit from houses -
xynyx55 - 01.05.2010
I dont understand what you mean, sorry.
Isn't HouseInfo[variable] the same as HouseInfo[variable]?