Chat Bubble.
#1

Hello,


Hi, I wanted to know how to display text chat over the head of the player. It seems to me that since this is SetPlayerChatBubble. I did like the wiki.sa-mp.com and nothing.

public OnPlayerText(playerid, text[])
{
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
return 1;
}

Help anyone?
Reply
#2

It also says that it is a 0.3 function. SA-MP is currently 0.2, so it won't work unless you're using betas.
Reply
#3

Parameters:
(playerid, text[], color, Float:drawdistance, expiretime)

expiretime: The time in miliseconds the bubble should be displayed for.

Make a timer and loop it so it will be pretty much infinite.
Reply
#4

Quote:
Originally Posted by √№ceC№ty
Parameters:
(playerid, text[], color, Float:drawdistance, expiretime)

expiretime: The time in miliseconds the bubble should be displayed for.

Make a timer and loop it so it will be pretty much infinite.
I am not sure but I do not think he does actually want it to be infinite. It shows the chat bubble for 10 seconds in his code and then lets it fade out/dissapear. Thats totally fine and has nothing to do with it doesn't work. I am guessing that he might really be using 0.2 as www.trueroleplay.com said.

PS: This is no advertisment.
Reply
#5

yes well putting it on 10 seconds isnt going to give much time to see it, what would be the point of it? but yes he is possibly using 0.2X but that means he would be fucking stupid.

Sorry if you are fucking stupid.
Reply
#6

Quote:
Originally Posted by √№ceC№ty
yes well putting it on 10 seconds isnt going to give much time to see it, what would be the point of it? but yes he is possibly using 0.2X but that means he would be fucking stupid.

Sorry if you are fucking stupid.
Firstly, there is no need for the language. It's a help forum. If you don't want to help, piss off.

Secondly, he's right - 10 seconds is plenty of time to see the bubble.

I can only assume that he is at least using the 0.3 includes, because if he wasn't, it wouldn't compile. The only thing I can suggest, is to re-download the 0.3 server package from sa-mp.com, and start from scratch, to avoid any mix-ups. Do note, that if you compile your script with 0.3 pawno, it won't work on your 0.2X server, and vice versa. So check if that's the problem first. If it is, there's probably an error in your log files saying something along the lines of "Invalid function call", I can't remember it exactly.
Reply
#7

no need for that language but i should piss off?

without a teleport command hes not going to be able to see the chat bubble in 10 seconds.
Reply
#8

Oh, I forgot to mention that you can't see your own chat bubbles. You can only see them on other players, so if you want to see one, you need to get another player to join your server, and test it like that.
Reply
#9

Quote:
Originally Posted by √№ceC№ty
no need for that language but i should piss off?

without a teleport command hes not going to be able to see the chat bubble in 10 seconds.
I'm pretty sure it's just for people around him to see. And anyways, you can just read it from the chat window if you're not close to him.
Reply
#10

I'm using 0.3 and Pawn SAMP'a attached to it. I used this function as in the first fasts. I enter some text in the box .. a bubble is not displayed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)