19.01.2011, 13:36
Quote:
Now hes going to get "undefined symbol: i"
Maybe YOU should use common sense next time |
pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
{
if(HouseEntered[playerid] == 255)
{
SendClientMessage(playerid, COLOR_YELLOW, "You're not in a house");
return 1;
}
if(IsPlayerConnected(playerid))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[HouseEntered[playerid]][hEntrancex],HouseInfo[HouseEntered[playerid]][hEntrancey],HouseInfo[HouseEntered[playerid]][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid,0);
if(HouseInfo[HouseEntered[playerid]][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
HouseEntered[playerid] = 255;
return 1;
}