Text povis glave

Započeo Sinner.man
•5. Feb. 2018.
1,357
pregleda
17
postova
KasperD
4
Shot Caller
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Detaljan opis problema: Treba mi nesto za sistem da igrac povis svoje glave moze napisati text koji zeli (povis imena)
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
KasperD
4
Shot Caller
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Radim na modu athlone ako neko moze da sto preciznije uradi tj prilagodi bar nekoliko
Hvala unaprijed
Rax_King
6
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
CMD:textiznadvugle(playerid, prm[]) {
if (!isnull(params)) SetPlayerChatBubble(playerid, prm, -1, 100.0, (1000 * 60) * 60);
return 1;
}
KasperD
4
Shot Caller
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Hahahahahh. Gsje mogu dodati da je crvena boja
Rax_King
6
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.

Parameters:
(playerid, text[], color, Float:drawdistance, expiretime)
playerid The player which should have the chat bubble.
text[] The text to display.
color The text color
drawdistance The distance from where players are able to see the chat bubble.
expiretime The time in miliseconds the bubble should be displayed for.


Lagani test iz engleskog
SejnurHD
5
OG Legend
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Mozes uraditi nesto na ovu foru:
CMD:label(playerid, params[]
{
new tekst, boja;
if(sscanf(params, "ud", tekst, boja)) return SendClientMessage(playerid, -1, "Koriscenje: /label ");
else
{
    SetPlayerChatBubble(playerid, tekst, boja, 100.0, 10000);
}
return 1;
}
Rax_King
6
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Raptorâ„¢ wrote on February 5, 2018, 8:06 pm:
Mozes uraditi nesto na ovu foru:
CMD:label(playerid, params[]
{
new tekst, boja;
if(sscanf(params, "ud", tekst, boja)) return SendClientMessage(playerid, -1, "Koriscenje: /label ");
else
{
    SetPlayerChatBubble(playerid, tekst, boja, 100.0, 10000);
}
return 1;
}


Moli se korisnik da nauci sscanf2 specifiere
StefanSkripter
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Trazis SetPlayerChatBubble
SejnurHD
5
OG Legend
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
.ксундер wrote on February 5, 2018, 8:09 pm:
Moli se korisnik da nauci sscanf2 specifiere

Moli se korisnik da se ne kurci. Hvala <3.
Rax_King
6
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Raptorâ„¢ wrote on February 5, 2018, 9:04 pm:
Moli se korisnik da se ne kurci. Hvala <3.


Mislim da ovo nece raditi korisnice. Eo ti karu .i. i srcak ♥
Grebovic_Danijel
5
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Raptorâ„¢ wrote on February 5, 2018, 8:06 pm:
Mozes uraditi nesto na ovu foru:
CMD:label(playerid, params[]
{
new tekst, boja;
if(sscanf(params, "ud", tekst, boja)) return SendClientMessage(playerid, -1, "Koriscenje: /label ");
else
{
    SetPlayerChatBubble(playerid, tekst, boja, 100.0, 10000);
}
return 1;
}

Zab si zagradu da zatvoris
CMD:label(playerid, params[])
{
new tekst, boja;
if(sscanf(params, "ud", tekst, boja)) return SendClientMessage(playerid, -1, "Koriscenje: /label ");
else
{
    SetPlayerChatBubble(playerid, tekst, boja, 100.0, 10000);
}
return 1;
}
Rax_King
6
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Mislim da morate da ponovite specifiere

Specifier(s) Name Example values
i, d Integer 1, 42, -10
c Character a, o, *
l Logical true, false
b Binary 01001, 0b1100
h, x Hex 1A, 0x23
o Octal 045 12
n Number 42, 0b010, 0xAC, 045
f Float 0.7, -99.5
g IEEE Float 0.7, -99.5, INFINITY, -INFINITY, NAN, NAN_E
u User name/id (bots and players) Y_Less, 0
q Bot name/id ShopBot, 27
r Player name/id Y_Less, 42
TerzaScripting
5
Underboss
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
Ovo ti je tipa sa crvenom bojom sto si rekao da hoces

CMD:tekstiznadvugle(playerid, params[])
{
if(sscanf(params, "s", params)) return SCM(playerid, -1, "/tekstiznadvugle ");
new szString;
format(szString, 33, "[%s]", params);
SetPlayerChatBubble(playerid, szString, 0xE50209FF, 30.0, 60000);
return 1;
}
Rax_King
6
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
TerzicY wrote on February 5, 2018, 9:42 pm:
Ovo ti je tipa sa crvenom bojom sto si rekao da hoces

CMD:tekstiznadvugle(playerid, params[])
{
if(sscanf(params, "s", params)) return SCM(playerid, -1, "/tekstiznadvugle ");
new szString;
format(szString, 33, "[%s]", params);
SetPlayerChatBubble(playerid, szString, 0xE50209FF, 30.0, 60000);
return 1;
}


Bolje da ne koristis sscanf jer to je jedna teza provjera vise, napisao sam gore kod, isnull radi posao.
TerzaScripting
5
Underboss
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
5. Feb. 2018.
.ксундер wrote on February 5, 2018, 9:49 pm:
Bolje da ne koristis sscanf jer to je jedna teza provjera vise, napisao sam gore kod, isnull radi posao.

isnull provera samo da li je string 0, neka budala ce naleti i napisati preko 60 karaktera i stavice u SetPlayerChatBubble?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha