/me command help !
#1

Hello I have long needed a way to make my command will be long and not by line stop and after a few words that will open another line please help my command so please help

Код:
command(me, playerid, params[]) {
	new
	    string[128];

	if(isnull(params))
	{
	    return SendClientMessage(playerid, WHITE, "SYNTAX: /me [action]");
	}
	if(Player[playerid][pMask] == 1)
	{
	    format(string, sizeof(string), "*[Mask_%d] %s", Player[playerid][MaskRandom], params);
	}
	else
	{
		format(string, sizeof(string), "* %s %s", RemoveUnderScore(playerid), params);
	}
	NearByMessage(playerid, COLOR_PURPLE, string);
	Player[playerid][MeActions]++;
	return 1;
}
Reply
#2

This is mine
PHP код:
CMD:me(playerid,params[])
{
    new 
string[256];
    new 
playername[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,playername,sizeof(playername));
    if(
strlen(params))
    {
        
format(string,sizeof(string),"*%s %s",playername,params);
        
SendClientMessageToAll(COLOR_GREY,string);
    }
    else
    {
        
format(string,sizeof(string),"*%s ",playername);
        
SendClientMessageToAll(COLOR_GREY,string);
    }
    return 
1;

Reply
#3

^^

Dude he meant when there is no space for the line
the line will form into 2 line like this

Код:
Romel is cooking a selfish fish in
my house tonight
Reply
#4

Quote:
Originally Posted by Romel
Посмотреть сообщение
^^

Dude he meant when there is no space for the line
the line will form into 2 line like this

Код:
Romel is cooking a selfish fish in
my house tonight
yes can you make it for me please or someone else ?
Reply
#5

^^

I don't even know how to do it..
Reply
#6

someone else please i need this !
Reply
#7

guys please build it for me i need to open the server today and i need it !!
[sory abut the jump]
Reply
#8

But dude, you are in wrong section.
You must post this on Scripting Request Thread.
Reply
#9

My English is not good so you can put me what to say?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)