OnPlayerSpawn Is Not Responding
#1

Le Hello, so i have a problem, my public OnPlayerSpawn is not responding to calls, i tryed to print, nothing happens

code is empty but not working:
Код:
 
public OnPlayerSpawn( playerid )
{
	print( "Le Hello" );
	print( "Atsakome nr3 " );
	// :Rodome, Naikiname Tekstus
	TextDrawShowForPlayer( playerid, Engine );
	TextDrawShowForPlayer( playerid, Powered );
	TextDrawHideForPlayer( playerid, ConnectBox );

 	if( newguy[ playerid ] )
 	{

  		new
		  	rand = random( sizeof( RandomSpawn ) )
  		;

    	SetPlayerPos( playerid,
								RandomSpawn[ rand ][ 0 ],
								RandomSpawn[ rand ][ 1 ],
								RandomSpawn[ rand ][ 2 ] );

 	   	SetPlayerFacingAngle(playerid,
										RandomSpawn[ rand ][ 3 ] );

		newguy[ playerid ] = false;
		print( " atsakome " );

		ShowPlayerDialog( playerid,900, 1, "Įveskite Savo EMAILĄ", "Įveskite:", "Tęsti", "" );
    }
    
	if( PVar[ playerid ][ pLastX ] != 0.0 && PVar[ playerid ][ pLastY ] != 0 )
	{
	   TextDrawHideForPlayer( playerid, ConnectBox );


		SetPlayerPos( playerid,
								PVar[ playerid ][ pLastX ],
								PVar[ playerid ][ pLastY ],
								PVar[ playerid ][ pLastZ ] );

		SetPlayerInterior( playerid, PVar[ playerid ][ pInt ] );

		print( " atsakome Nr2" );

		new
		    msg[ 210 ]
		;

		format( msg, sizeof msg, "Sveiki Sugrįћe Į Serverį {D80000} %s {FFFFFF}\
						        \nApie Ћaidimo Naujienas Galite Suћinoti Suvede\
								\n{FF8C00}            		(/naujienos){FFFFFF}", pName( playerid ) );

   	    ShowPlayerDialog( playerid, 90, DIALOG_STYLE_MSGBOX,  "Serveris", msg, "Uћdaryti", "" );

	}

	return true;
}
Reply
#2

Any?
Reply
#3

Are you getting any errors when you compile?
Reply
#4

Nope
Reply
#5

Nobody can help me? :/
Reply
#6

Put it in OnPlayerRequestSpawn
Reply
#7

Quote:
Originally Posted by System64
Посмотреть сообщение
Put it in OnPlayerRequestSpawn
You mean...? Sorry i'm bad ant english
Reply
#8

Ensure you return 1 in OnPlayerSpawn in all other scripts.

This forum requires that you wait 120 seconds between posts. Please try again in 72 seconds.
Reply
#9

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Ensure you return 1 in OnPlayerSpawn in all other scripts.

This forum requires that you wait 120 seconds between posts. Please try again in 72 seconds.
Everyting is okay, but spawn...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)