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


Messages In This Thread
OnPlayerSpawn Is Not Responding - by No Fear - 08.10.2011, 12:48
Re: OnPlayerSpawn Is Not Responding - by No Fear - 08.10.2011, 16:30
Re: OnPlayerSpawn Is Not Responding - by nilanjay - 08.10.2011, 16:37
Re: OnPlayerSpawn Is Not Responding - by No Fear - 08.10.2011, 17:06
Re: OnPlayerSpawn Is Not Responding - by No Fear - 09.10.2011, 07:48
Re: OnPlayerSpawn Is Not Responding - by System64 - 09.10.2011, 08:19
Re: OnPlayerSpawn Is Not Responding - by No Fear - 09.10.2011, 08:20
Re: OnPlayerSpawn Is Not Responding - by Ash. - 09.10.2011, 08:20
Re: OnPlayerSpawn Is Not Responding - by No Fear - 09.10.2011, 08:29

Forum Jump:


Users browsing this thread: 1 Guest(s)