Pawn crashes - 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: Pawn crashes (
/showthread.php?tid=502710)
Pawn crashes -
raivorots11 - 25.03.2014
hello, idk what i can do ill try to fix that but nothing when i add that
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerPos(playerid,x,y,z);///sets the player who dies to this position
return1;
}
pawn will crashes can somone help me?
Re: Pawn crashes -
TheFlyer - 25.03.2014
do you have SetPlayerPos like that? with those x,y,z?
Re: Pawn crashes -
ChuckyBabe - 25.03.2014
Try to put x,y,z the position u want then compile it or maybe fixed ur indentation
+rep if i help u
Re: Pawn crashes -
Beckett - 26.03.2014
First of all, do you know what is OnPlayerDeath callback? when a player dies and you set his position to X Y Z, is the X Y Z even defined? and setting his position wont do anything since he will respawn, however you probably have a missing bracket which is not in this callback try to use a bracketfinder.