05.01.2011, 17:11
Usa esse:
Edit:
Fail o manolo de cima /\ mandou mais rapido .-.
pawn Code:
if(strcmp(cmd, "/FnA", true) == 0)
{
GetPlayerName(playerid, pName, sizeof(pName));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COR_ERRO, "[Comando Fail] Uso: /FnA [Texto]");
return 1;
}
format(string, sizeof(string), "[FaA]%s diz: %s", pName, result);
SendClientMessageToAll(0xFF00AA,string);
return 1;
}
Fail o manolo de cima /\ mandou mais rapido .-.