[Pedido] /Anunciar
#1

Alguйm aн tem um bom comando de /Anunciar [texto]
Sabem? Que anuncia na tela um text draw para todos!
Abraзos!
Reply
#2

pawn Код:
CMD:anuncio(playerid, params[])
{
    new Texto[128];
    new Nome[MAX_PLAYER_NAME];
    if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, CINZA, "{3cff00}Ч INFO Ч {FFFFFF} Use /texto [texto]"), SendClientMessage(playerid, CINZA, "Use o comando para mandar uma mensagem em forma de GameText aos jogadores");
    format(String, sizeof(String), "~r~%s: ~w~%s", Nome(playerid), Texto);
    GameTextForAll(String, 4000, 4);
    return 1;
}
Ajudei ? Ajuda eu tbm dando +REP ^^ vlw
Reply
#3

TheKoDaK eu tentei usar seu comando,e dб o seguinte erro ao compilar:
pawn Код:
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(864) : error 017: undefined symbol "String"
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(864) : error 017: undefined symbol "String"
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(864) : warning 215: expression has no effect
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(864) : error 001: expected token: ";", but found ")"
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(864) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

Й sу criar uma variбvel para a string.
Depois vou testar esse CMD. Vlws ae.
Reply
#5

No Inicio do comando Coloque

pawn Код:
new String[128];
Reply
#6

Ainda da erros:
pawn Код:
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(844) : warning 219: local variable "String" shadows a variable at a preceding level
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(854) : warning 219: local variable "String" shadows a variable at a preceding level
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(949) : error 012: invalid function call, not a valid address
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(949) : warning 215: expression has no effect
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(949) : error 001: expected token: ";", but found ")"
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(949) : error 029: invalid expression, assumed zero
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(949) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#7

pawn Код:
CMD:anuncio(playerid, params[])
{
    new String[128];
    new Texto[128];
    new Nome[MAX_PLAYER_NAME];
    if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, CINZA, "{3cff00}Ч INFO Ч {FFFFFF} Use /texto [texto]"), SendClientMessage(playerid, CINZA, "Use o comando para mandar uma mensagem em forma de GameText aos jogadores");
    format(String, sizeof(String), "~r~%s: ~w~%s", Nome(playerid), Texto);
    GameTextForAll(String, 4000, 4);
    return 1;
}
Reply
#8

Isso ai nгo й textdrawn e sim GameText
Reply
#9

Jб tinha tentado fazer isso antes.
Reply
#10

Quote:

Isso ai nгo й textdrawn e sim GameText

Sim. De vez enquando dou uns lag.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)