Help Me For Clearchat +Rep For Helping
#1

Sorry Topic Removed
Reply
#2

pawn Код:
OnPlayerConnect(playerid)
{
  for(new i = 0; i < 50; i++) SendClientMessage(playerid,-1," ");
  return 1;
}
Reply
#3

pawn Код:
CMD:clearchat(playerid, params[])
{
    for(new i = 0; i < 100; i ++) SendClientMessage(COLOR_GREY, " ");
    return 1;
}
That's a command, in case you would like that also


At the SendClientMessage, add after it a ToAll if you would like to clear it for everyone
Reply
#4

Quote:
Originally Posted by HuSs3n
Посмотреть сообщение
pawn Код:
OnPlayerConnect(playerid)
{
  for(new i = 0; i < 50; i++) SendClientMessage(playerid,-1," ");
  return 1;
}
Thnz
Reply
#5

But Error is coming Please Give Another

pawn Код:
D:\GoD'Z v9\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'
Z v9\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'Z v9\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'
Z v9\pawno\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'Z v9\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\GoD'
Z v9\pawno\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'Z v9\pawno\include\dutils.inc(399) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'
Z v9\pawno\include\dutils.inc(463) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\GoD'Z v9\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GoD'
Z v9\pawno\include\Ldudb.inc(48) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\GoD'Z v9\pawno\include\Ldudb.inc(99) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\GoD'
Z v9\pawno\include\zcmd.inc(90) : warning 219: local variable "pos" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2304) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2444) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2452) : error 035: argument type mismatch (argument 1)
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2467) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2469) : error 035: argument type mismatch (argument 1)
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2480) : warning 219: local variable "pos" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(2486) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10339) : warning 219: local variable "pos" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10560) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10592) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10602) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10633) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10643) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10688) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10837) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10966) : error 021: symbol already defined: "ShowPlayerDialog"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10984) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10992) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(10998) : error 021: symbol already defined: "TextDrawShowForPlayer"
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11011) : error 021: symbol already defined: "GetPlayerName"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11012) : error 021: symbol already defined: "GetPlayerIp"
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11013) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11018) : error 021: symbol already defined: "print"
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11020) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11025) : error 021: symbol already defined: "print"
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11026) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11028) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11031) : error 021: symbol already defined: "GetPlayerIp"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11038) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11043) : error 021: symbol already defined: "Kick"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11046) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11047) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11048) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11052) : error 021: symbol already defined: "Kick"
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11053) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11058) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11059) : error 010: invalid function or declaration
D:\GOD'
ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11061) : error 010: invalid function or declaration
D:\GOD'ZV~1\GAMEMO~1\SATDMW~1\GoDZ.pwn(11066) : error 021: symbol already defined: "Kick"

Compilation aborted.Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#6

What Error?

This Should Fix You're /cc Command
PHP код:
    if(strcmp(cmd"/clearchat"true) == || strcmp(cmd"/cc"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
PlayerInfo[playerid][pAdmin] >= 1337)
            {
                for(new 
Order 0Order 800Order++)
                
SendClientMessageToAll(COLOR_GREY" ");
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   You are not authorized to use that Command !");
                return 
1;
            }
        }
    } 
Reply
#7

You have missed a bracket.
Reply
#8

i dont want clearchat command i need to clear the chat when player select their skin
Reply
#9

pawn Код:
#define ClearChat(%1) for(new cc=0; cc < 100; cc++) SendClientMessage(%1, -1, " ");
then in anywhere use like that. i'll give example:

pawn Код:
public OnPlayerConnect(playerid)
{
    ClearChat(playerid);
    //continue your stuff.
    return 1;
}
Reply
#10

Hmm Lemme try This
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)