15.02.2013, 21:56
So, this is my code:
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?
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;
}
WHY?