OOC Chat !
#1

I have made OOC chat but something don't work :S

Код:
    if(!strcmp(cmdtext, "/b", true))
    {
    new tmp[192];
    GetPlayerName(playerid,tmp,24);
    format(tmp,192,"(( %s: %s ))",tmp,cmdtext[5]);
    SendClientMessageToAll(0xFF4444FF,tmp);
    }
Reply
#2

pawn Код:
if(!strcmp(cmdtext, "/b", true, 2))
{
    new tmp[128];
    GetPlayerName(playerid,tmp,24);
    format(tmp,sizeof(tmp),"(( %s: %s ))",tmp,cmdtext[2]);
    SendClientMessageToAll(0xFF4444FF,tmp);
}
Reply
#3

Command works but when I type for example /b haha it says ((Alex Cone: Haha)) and than under that SERVER:Unknow command .

Here is picture :
Reply
#4

pawn Код:
if(!strcmp(cmdtext, "/b", true, 2))
{
    new tmp[128];
    GetPlayerName(playerid,tmp,24);
    format(tmp,sizeof(tmp),"(( %s: %s ))",tmp,cmdtext[2]);
    SendClientMessageToAll(0xFF4444FF,tmp);
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)