SA-MP Forums Archive
Problem with objects - 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)
+--- Thread: Problem with objects (/showthread.php?tid=496926)



Problem with objects +REP - Tadas - 24.02.2014

Hello, I have done a entrance with "Enter" button. And when I exit from that bulding I got this:

How to fix it ?

Sorry for my bad English


Re: Problem with objects - Tadas - 24.02.2014

Please guys I need help :/


Re: Problem with objects - Kyance - 24.02.2014

Show us the code(s).


Re: Problem with objects - theomanking - 24.02.2014

Yes,
Code please?


Re: Problem with objects - Tadas - 24.02.2014

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
if( 
newkeys == KEY_SECONDARY_ATTACK )
    {
    if( 
IsPlayerInRangeOfPointplayerid3.0, -2072.7656,244.6396,37.2011) )
    {
    
SetPlayerPosplayerid381.169189,-188.803024,1000.632812);
    
SetPlayerInteriorplayerid17 );
    return 
1;
    }
    }
    if( 
newkeys == KEY_SECONDARY_ATTACK )
    {
    if( 
IsPlayerInRangeOfPointplayerid3.0377.1459,-193.3055,1000.6328) )
    {
    
SetPlayerPosplayerid,  -2072.7656,244.6396,37.2011 );
    
SetPlayerInteriorplayerid17 );
    return 
1;
    }
    }
    return 
1;

And this,but this is just 3D text I dont think there is a problem:
PHP код:
        public OnGameModeInit()
       {
    
Create3DTextLabel("Press 'Enter' "WHITE 377.1459,-193.3055,1000.63285001); 



Re: Problem with objects - theomanking - 24.02.2014

Hmm, but if you have Interior Problem then there is mistake.
pawn Код:
SetPlayerInterior( playerid, 17 );
You may change it do this:
SetPlayerInterior( playerid, 0 );


Re: Problem with objects - Tadas - 24.02.2014

Quote:
Originally Posted by theomanking
Посмотреть сообщение
Hmm, but if you have Interior Problem then there is mistake.
pawn Код:
SetPlayerInterior( playerid, 17 );
You may change it do this:
SetPlayerInterior( playerid, 0 );
Thanks man +Rep for you


Re: Problem with objects - theomanking - 24.02.2014

Good luck