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): //
Text povis glave
1,330
pregleda
17
postova
5. Feb. 2018.
5. Feb. 2018.
Radim na modu athlone ako neko moze da sto preciznije uradi tj prilagodi bar nekoliko
Hvala unaprijed
Hvala unaprijed
5. Feb. 2018.
CMD:textiznadvugle(playerid, prm[]) {
if (!isnull(params)) SetPlayerChatBubble(playerid, prm, -1, 100.0, (1000 * 60) * 60);
return 1;
}
if (!isnull(params)) SetPlayerChatBubble(playerid, prm, -1, 100.0, (1000 * 60) * 60);
return 1;
}
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
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;
}
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
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;
}
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, 425. 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;
}
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.
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