Client Message Appear Truncated
#1

So, this is my code:
pawn Код:
CMD:b(playerid, params[])
{
    if (PlayerData[playerid][LoggedIn] == 1 && PlayerData[playerid][Tutorial] == 20)
    {
        new SayString[128]; if (sscanf(params,"s",SayString)) return SendClientMessage(playerid, 0xFF0000AA,"USAGE: /b [Testo]");
        new PlayerName[256]; GetPlayerName(playerid,PlayerName,MAX_PLAYER_NAME);
        PlayerName = str_replace("_"," ",PlayerName);
        if (PlayerData[playerid][Sex] == 0) format(SayString,sizeof(SayString),"{00FFFF}(( {0080FF}%s{00FFFF}: %s ))",PlayerName,SayString);
        else if (PlayerData[playerid][Sex] == 1) format(SayString,sizeof(SayString),"{00FFFF}(( {FF00FF}%s{00FFFF}: %s ))",PlayerName,SayString);
        SendClientMessageToAll(0xFFFFFFFF,SayString);
    }
    return 1;
}
So, if I type /b hello everyone, I hope my roleplay will be nice to you!, the output will be (( Stupid_Boy: hello everyone, I hope my roleplay wil ))
WHY?
Reply


Messages In This Thread
Client Message Appear Truncated - by ReDevilGames - 15.02.2013, 21:56
Re: Client Message Appear Truncated - by zxc1 - 16.02.2013, 00:02
Re: Client Message Appear Truncated - by RajatPawar - 16.02.2013, 02:47
Re: Client Message Appear Truncated - by T0pAz - 16.02.2013, 02:52
Re: Client Message Appear Truncated - by Luis- - 16.02.2013, 02:52

Forum Jump:


Users browsing this thread: 2 Guest(s)