PlayerTextDrawShow(KILLERID ?? - 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: PlayerTextDrawShow(KILLERID ?? (
/showthread.php?tid=520732)
PlayerTextDrawShow(KILLERID ?? -
[Cali]ChrOnic_T - 20.06.2014
Okay so the textdraw is ]playerID]
pawn Код:
killing[playerid] = CreatePlayerTextDraw(playerid, 137.500000, 125.416648, "~r~> ~y~RESPECT SPREE ~r~<");
but In OnPlayerDeath Can I use:
pawn Код:
PlayerTextDrawShow(killerid,killing[killerid]);
?
Re: PlayerTextDrawShow(KILLERID ?? -
Laurey - 20.06.2014
Elaborate Please.
Re: PlayerTextDrawShow(KILLERID ?? -
Threshold - 20.06.2014
Yes, but you can only do it if killerid is not an INVALID PLAYER. (killerid == INVALID_PLAYER_ID).
Otherwise your server may crash due to accessing an invalid index. 'INVALID_PLAYER_ID == 65535'.
So killing[65535] goes above the maximum of killing[499].
pawn Код:
if(killerid != INVALID_PLAYER_ID) PlayerTextDrawShow(killerid, killing[killerid]);