printf
#7

pawn Код:
CMD:clearchat(playerid,params[])
{
    if(!IsPlayerAdmin( playerid ) ) return SCM( playerid, RED, "Unknown Command! Type /help" );
    for( new i = 0; i < 100; i++ ) SCMA( -1 , " " );
    new
        sz_msg[ 52 ]
    ;
    GetPlayerName( playerid, sz_msg, MAX_PLAYER_NAME );
    format( sz_msg, sizeof( sz_msg ), "Admin %s has cleared the chat", sz_msg );
    SendClientMessageToAll( 0xFF0000FF, sz_msg );  
    return 1;
}
Quote:
Originally Posted by pds2k12
Посмотреть сообщение
pawn Код:
CMD:clearchat(playerid,params[])
{
    if(!IsPlayerAdmin( playerid ) )return SCM( playerid, RED, "Unknown Command! Type /help" );

    for(new i = 0; i < 100; i++) { SCMA(-1 ," "); }

    new
        pString[ 128 ],
        PlayerName[ 24 ]
    ;
    GetPlayerName( playerid, PlayerName, sizeof( PlayerName ) );
    format(pString, sizeof( pString ), "");
    SCMA(-1, "%s(%d) Has cleared the chat box.", PlayerName, playerid );
    return 1;
}
I guess you were in a hurry! You used what the format should had to SCMA.
Reply


Messages In This Thread
printf - by Another1 - 15.10.2013, 16:26
Re: printf - by Konstantinos - 15.10.2013, 16:29
AW: printf - by BigETI - 15.10.2013, 16:29
Re: printf - by Another1 - 15.10.2013, 17:30
Re: printf - by Another1 - 15.10.2013, 17:34
Re: printf - by Patrick - 15.10.2013, 17:38
Re: printf - by Konstantinos - 15.10.2013, 17:39
Re: printf - by Djole1337 - 15.10.2013, 17:48
Re: printf - by Konstantinos - 15.10.2013, 17:53
Re: printf - by Another1 - 15.10.2013, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)