OOC Chat ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OOC Chat ! (
/showthread.php?tid=244460)
OOC Chat ! -
Alex.Cone - 27.03.2011
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);
}
Re: OOC Chat ! -
MadeMan - 27.03.2011
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);
}
Re: OOC Chat ! -
Alex.Cone - 27.03.2011
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 :
Re: OOC Chat ! -
armyoftwo - 27.03.2011
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;
}