08.10.2011, 12:48
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:
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; }