Quote:
Originally Posted by Tugamars
Meti :
pawn Код:
CMD:cv(playerid, params[]) { new nome[MAX_PLAYER_NAME], string[200], niveladm[128], texto[200]; if(sscanf(params, "s[200]", texto)) return SendClientMessage(playerid, COLOR_GREY, "Use : /cv [texto]."); GetPlayerName(playerid, nome, sizeof(nome)); if(PlayerInfo[playerid][pAdmin] == 1) return niveladm = "Moderador em Teste"; if(PlayerInfo[playerid][pAdmin] == 2) return niveladm = "Moderador"; if(PlayerInfo[playerid][pAdmin] == 3) return niveladm = "Fundador"; format(string, sizeof(string), "{FF0000}[%s] {FFFFFF}%s : {066363}%s", niveladm, nome, texto); SendClientMessageToAll(COLOR_RED, string); return 1; }
E o erro deixou de dar , no entanto a mensagem nгo й exebida ...
|
Nгo envia porque vocк estб retornando o comando antes da mensagem.