12.07.2013, 20:38
Alguйm aн tem um bom comando de /Anunciar [texto]
Sabem? Que anuncia na tela um text draw para todos!
Abraзos!
Sabem? Que anuncia na tela um text draw para todos!
Abraзos!
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;
}
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.
new String[128];
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.
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;
}
Isso ai nгo й textdrawn e sim GameText |