pomoc vezana za /exit

Započeo Plantak, Februar 15, 2010, 00:10:39 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ja napravim kucu kupim ju uÄ'em unutra vidim interior ali nemogu /exit

ovo mi je komanda /exit moze mi neko rec dali je kaj krivo napravljeno u njoj?


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;
}
}
}