[HELP] CMD:CC
#1

Everywhere iam looking for CMD clearchart i found only this

Код:
CMD:cc( playerid, params[ ] )
{
for(new i = 0; i < 100; i++) SendClientMessageToAll(0, " ");
return 1;
}
The problem is that it work only for 1 line.
So when i use /cc its same like if i type 1 blank message...
Not 100.

Any idea?
Reply
#2

Really? Weird because i've the same thing.

Try:
PHP код:
for(new 0100; ++iSendClientMessageToAll(-1""); 
Reply
#3

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Try:
PHP код:
for(new 0100; ++iSendClientMessageToAll(-1""); 
I just copied this and i have still the same problem..


The wierd thing is that when i use:

Код:
CMD:cc( playerid, params[ ] )
{
SendClientMessageToAll(-1, " ");
SendClientMessageToAll(-1, " ");
SendClientMessageToAll(-1, " ");
// ... more (100)
return 1;
}
i still have the same problem.
What is it?
Reply
#4

Perhaps your server has an anti-flood function?
Reply
#5

Not really,
i watched for it to be sure but i know i did not make any anti-flood and i write my mode from 0.
Reply
#6

Didn't help me at all :/ Why the normal code i posted doesn't work?
Reply
#7

Anyone?
Why this is not working ?

Код:
for(new i = 0; i < 100; ++i) SendClientMessageToAll(-1, "");
Reply
#8

pawn Код:
for(new i; i < 25; i++)
    SendClientMessageToAll(-1, "");
instead of
Код:
for(new i = 0; i < 100; ++i) SendClientMessageToAll(-1, "");
doens't work too?
Reply
#9

pawn Код:
CMD:clearchat( playerid, params[ ] ){
    for( new i = 0; i < 20; i++ ){ // 20 because that's the maximum amount of chat-lines and sending more messages than intended would be useless
          SendClientMessageToAll( -1, "" ) ;
    }
    return 1 ;
}
Reply
#10

PHP код:
CMD:cc(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return 0;
    for (new 
0100c++) SendClientMessageToAll(0"");
    
SendClientMessageToAll(0x0000BBAA"~ An admin has cleared the server chat.");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)