14.04.2017, 13:16
pawn Код:
[20:41:48] sscanf warning: Strings without a length are deprecated, please add a destination size.
[20:42:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[20:42:33] sscanf warning: String buffer overflow.
pawn Код:
CMD:ca(playerid, params[])
{
new texto[128];
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, Vermelho,"[ERRO]: Vocк nгo possui permissгo suficiente.");
if(sscanf(params, "s", texto)) return SendClientMessage(playerid, Vermelho, "[ERRO] Use: /ca MENSAGEM");
GetPlayerName(playerid, Jogador, 23);
format(Celula, sizeof(Celula), "[C-ADMIN] %s( %d ): %s", Jogador, playerid, texto);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(pAdmin[playerid][Level] >=1)
SendClientMessage(i, Cor_Admin, Celula);
}
return 1;
}