Bug with House Enter
#1

I have bug, I can't get in to house, please help me.


Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	  if( newkeys == KEY_SECONDARY_ATTACK ) // ULAZ
                {
    new x,y,z,int,ww,xa,ya,za;
    for(new k = 0; k <= max_kuca; k++)
        {
                x = InfoKuce[k][IntXKuce];
                y = InfoKuce[k][IntYKuce];
                z = InfoKuce[k][IntZKuce];
                xa = InfoKuce[k][IzlazXKuce];
                ya = InfoKuce[k][IzlazYKuce];
                za = InfoKuce[k][IzlazZKuce];
                int = InfoKuce[k][IntIDKuce];
                ww = InfoKuce[k][VWKuce];

        if(IsPlayerInRangeOfPoint(playerid, 2.0, xa, ya, za))
        {
                if(strcmp(InfoKuce[k][VlasnikKuce],Ime(playerid), false ) == 0)
        {
                SetPlayerPos(playerid,x,y,z);
                SetPlayerInterior(playerid,int);
                SetPlayerVirtualWorld(playerid,ww);
                GameTextForPlayer( playerid, "Kuca", 3000, 1 ); // Salje igracu nekakvu poruku
        }
        }

        else if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
        {
        if(strcmp(InfoKuce[k][VlasnikKuce],Ime(playerid), false ) == 0)
        {
                SetPlayerPos(playerid,xa,ya,za);
                SetPlayerInterior(playerid,0);
                SetPlayerVirtualWorld(playerid,0);
                GameTextForPlayer( playerid, "Bay Side", 3000, 1 ); // Salje igracu nekakvu poruku
        }
        }
}
        return true;
}
}
Reply


Messages In This Thread
Bug with House Enter - by ivanVU - 12.06.2012, 19:43
Re: Bug with House Enter - by milanosie - 12.06.2012, 19:44
Re: Bug with House Enter - by ivanVU - 12.06.2012, 20:07
Re: Bug with House Enter - by milanosie - 12.06.2012, 21:06

Forum Jump:


Users browsing this thread: 3 Guest(s)