if(strcmp(cmd, "/me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "[Usage] /me [action]");
return 1;
}
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "Stranger %s", result);
}
else
{
format(string, sizeof(string), "%s %s", GetPlayerNameEx(playerid), result);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}

new result[64];
new result[128];
|
/me types a really long sentence and it takes up a lot of space because it's a long sentence so it takes up a lot of space. |
|
PlayerName types a really long sentence and it takes up a lot of space because it's a long sentence so it takes up a lot of space. |
|
PlayerName types a really long sentence and it takes up a lot of space because... it's a long sentence so it takes up a lot of space. |
|
Originally Posted by jameskmonger
He wants it to be like this:
Instead of if they type Quote:
Quote:
Quote:
|
* Mike Garber types a really long sentence and it takes up alot of space so It will not show up If he use what he had from the beginning.
PlayerName types a really long sentence and it takes up alot of space so It