Не, только хуже и ты так вроде только первый символ строки покажешьЦитата:
Тогда будет правильнее так, наверное
PHP код:
CMD:do(playerid, params[])
{
#if defined sscanf
if (sscanf(params, "s[124]", params))
#else
if (isnull(params))
#endif
{
return SendClientMessage(playerid, -1, !"Введите: /do <текст>");
}
new
Float:PosX, Float:PosY, Float:PosZ,
world, interior,
name[MAX_PLAYER_NAME], string[MAX_CHATBUBBLE_LENGTH+1];
GetPlayerPos(playerid, PosX, PosY, PosZ);
GetPlayerName(playerid, name, sizeof(name));
world = GetPlayerVirtualWorld(playerid);
interior = GetPlayerInterior(playerid);
#if defined sscanf
strcat(string, params[0]);
#else
strcat(string, params);
#endif
strcat(string, " (");
strcat(string, name);
strcat(string, ")");
#if defined foreach
foreach(new i : Player)
{
#else
for(new i = GetPlayerPoolSize(); i != -1; i--)
{
if ((0 == IsPlayerConnected(i))
|| (0 != IsPlayerNPC(i))) continue;
#endif
if(0 == IsPlayerInRangeOfPoint(i, 15.0, PosX, PosY, PosZ)) continue;
if((GetPlayerVirtualWorld(i) != world )
|| (GetPlayerInterior(i) != interior)) continue;
SendClientMessage(i, 0xE600FFFF, string);
}
#if defined sscanf
SetPlayerChatBubble(playerid, params[0], 0xE600FFFF, 30.0, 10000);
#else
SetPlayerChatBubble(playerid, params, 0xE600FFFF, 30.0, 10000);
#endif
return 1;
}