SA-MP Forums Archive
SetPlayerChatBubble Help. | +rep - 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: SetPlayerChatBubble Help. | +rep (/showthread.php?tid=576694)



SetPlayerChatBubble Help. | +rep - NickMirra - 06.06.2015

First thank you to the ones that respond and help(: Much appreciated.

Код:
PGRP.pwn(21407) : error 017: undefined symbol "ChatDeath"
PGRP.pwn(21407) : error 017: undefined symbol "ChatDeath"
PGRP.pwn(21407) : error 029: invalid expression, assumed zero
PGRP.pwn(21407) : fatal error 107: too many error messages on one line
Код:
			}

21407			format(ChatDeath, sizeof(ChatDeath), "You have died, you must wait 120 seconds before accepting death.", string);
			SetPlayerChatBubble(playerid,ChatDeath,COLOR_YELLOW,15.0,5000);
			SetTimerEx("DeathTimer", 1200, 0, "ii", playerid);
			GameTextForPlayer(playerid, "~r~Brutally Wounded", 5000, 3);
			ClearAnimations(playerid);
			ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Damage", 4.0, 0, 1, 1, 1, 0, 1);
			TogglePlayerControllable(playerid, 0);



Re: SetPlayerChatBubble Help. | +rep - nezo2001 - 06.06.2015

You didn't define it
PHP код:
new ChatDeath[128]; 



Re: SetPlayerChatBubble Help. | +rep - Rabea - 06.06.2015

use this"
pawn Код:
new ChatDeath[128];
format(ChatDeath, sizeof(ChatDeath), "You have died, you must wait 120 seconds before accepting death.", ChatDeath);
            SetPlayerChatBubble(playerid,ChatDeath,COLOR_YELLOW,15.0,5000);
            SetTimerEx("DeathTimer", 1200, 0, "ii", playerid);
            GameTextForPlayer(playerid, "~r~Brutally Wounded", 5000, 3);
            ClearAnimations(playerid);
            ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Damage", 4.0, 0, 1, 1, 1, 0, 1);
            TogglePlayerControllable(playerid, 0);



Re: SetPlayerChatBubble Help. | +rep - JaydenJason - 06.06.2015

also the player that died wont see that chat bubble