Player falling when i enter in the Bank
#1

Every bank i enter in my Sever the player just starts to fall from the sky.

Recently when i started my server it says "Run Time Error 16: Out Of Memory" so i searched on the internet how to fix it and they said i should remove #pragma dynamic.

Could it be that whatbi removed from my script?
Reply
#2

Can you show us the codes? The commands to enter the bank, related functions etc. How many objects do you use on your server? What is the playerbase and max. players? What's the server's RAM?
Reply
#3

Sounds like the server doesn't have enough RAM to load the interior objects, or, have you set the correct coцrdinates for the mapped interior? The correct interior ID?
Reply
#4

Well freeze the player or add custom interior object loading so objects will be shown.
Reply
#5

I added FreezeAndUnfreeze(playerid, time) on my /enter and /exit cmd and it works fine.You can make timer on it
Reply
#6

check interior id if that is ok try this include by me it helps you to freeze the player to stream objects
https://sampforum.blast.hk/showthread.php?tid=605618
or try this tutorial by me https://sampforum.blast.hk/showthread.php?tid=604084
Reply
#7

Should i show u guys te script?
Reply
#8

I had same problem. Don't show codes just do this

https://sampforum.blast.hk/showthread.php?tid=604084

Sreyas did that and i am so thankfull for that . Try it. It is easy and it is working very good
Reply
#9

I Dont know how to do it
Reply
#10

PHP код:
LoadObjectsForPlayerplayerid 

    if( 
IsPlayerConnected playerid ) )//checking if the player is connected 
    

        
TogglePlayerControllableplayeridfalse ); // Freezing the player 
        
if( GetPlayerPing playerid ) < 100 )      { SetTimerEx"ObjectsLoaded"30000"i"playerid );}//the value of Time should be increased upon increasing ping 
            
if( GetPlayerPing playerid ) > =100 ) { SetTimerEx"ObjectsLoaded"30000"i"playerid ); }// i stands for integer we passing playerid to function 
         
if( GetPlayerPing playerid ) >= 200 && GetPlayerPing playerid )<300 ) { SetTimerEx"ObjectsLoaded"32000"i"playerid ); } 
         if( 
GetPlayerPing playerid ) > =300 && GetPlayerPing playerid )<500 ) { SetTimerEx"ObjectsLoaded"37000"i"playerid ); } 
         if( 
GetPlayerPing playerid ) >= 500) { SetTimerEx"ObjectsLoaded"40000"i"playerid ); } 
        else { 
SetTimerEx"ObjectsLoaded"50000"i"playerid ); } 
    } 
    return 
1
}  
forward ObjectsLoadedplayerid );  
public 
ObjectsLoaded(playerid

    if( 
IsPlayerConnected playerid ) ) return TogglePlayerControllableplayeridtrue ); 
    return 
1

That is copied Sreyas's tutorial. Was that hard??

PS:When you make command that port player just put
PHP код:
LoadObjectsForPlayer(playerid); 
in your command and it will do the job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)