SA-MP Forums Archive
[HELP] Wanted Level - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Wanted Level (/showthread.php?tid=96221)



[HELP] Wanted Level - Smiths - 06.09.2009

When Player Kill a Player it do this:


Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(playerid) +1);
}
else
{
SetPlayerWantedLevel(killerid, 1);
}
but i got an error . where?






Re: [HELP] Wanted Level - HuRRiCaNe - 06.09.2009

u havent got any if so the "else" is making an error
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(playerid) +1);
return 1;
}
{
only that.


Re: [HELP] Wanted Level - Smiths - 06.09.2009

oh lol tyvm