Pawno Compiler Crash
#4

Yes i see the error, try to fix it like this:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
     ApplyAnimation(playerid,"MEDIC","CPR",1.1,1,0,0,1,30000,1);//Modify it as you want, this is an animation,

     playerDeath[playerid] = 1; // This is saying that the player died.  
     return 1;
}
public OnPlayerSpawn(playerid)
{    
     if(playerDeath[playerid] == 1) // This is checking if the player had died previously    
     {        

          SetPlayerPos(playerid,  2034.1534,-1402.6010,17.2946); // Replace X, Y, and Z With the Hospital Co-ords.      

          playerDeath[playerid] = 0; // This is saying the player is not dead.
     }    

     return 1;
}
Reply


Messages In This Thread
Pawno Compiler Crash - by Ben_Hatfield - 20.08.2012, 06:40
Re: Pawno Compiler Crash - by Avi57 - 20.08.2012, 06:44
Re: Pawno Compiler Crash - by Ben_Hatfield - 20.08.2012, 06:45
Re: Pawno Compiler Crash - by Amora187 - 20.08.2012, 06:50
Re: Pawno Compiler Crash - by Shetch - 20.08.2012, 06:51
Re: Pawno Compiler Crash - by Ben_Hatfield - 20.08.2012, 07:27
Re: Pawno Compiler Crash - by Amora187 - 20.08.2012, 07:42
Re: Pawno Compiler Crash - by Ben_Hatfield - 20.08.2012, 07:46

Forum Jump:


Users browsing this thread: 3 Guest(s)