SA-MP Forums Archive
OnPlayerSpawn Is Not Responding - 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: OnPlayerSpawn Is Not Responding (/showthread.php?tid=288601)



OnPlayerSpawn Is Not Responding - No Fear - 08.10.2011

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;
}



Re: OnPlayerSpawn Is Not Responding - No Fear - 08.10.2011

Any?


Re: OnPlayerSpawn Is Not Responding - nilanjay - 08.10.2011

Are you getting any errors when you compile?


Re: OnPlayerSpawn Is Not Responding - No Fear - 08.10.2011

Nope


Re: OnPlayerSpawn Is Not Responding - No Fear - 09.10.2011

Nobody can help me? :/


Re: OnPlayerSpawn Is Not Responding - System64 - 09.10.2011

Put it in OnPlayerRequestSpawn


Re: OnPlayerSpawn Is Not Responding - No Fear - 09.10.2011

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


Re: OnPlayerSpawn Is Not Responding - Ash. - 09.10.2011

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.


Re: OnPlayerSpawn Is Not Responding - No Fear - 09.10.2011

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...