[HELP] Longer /me and /do
#1

I've got a question.

How do you make a /me longer? I've readed something about strings but I don't really get it.

I want something that if you type /me test test test test test test test test.

It doesn't stops at /me test test test test test test te

And goes on like /me test test test test test test

New line: .. test test test.

If you understand what I mean.. Can anyone help me with making the string longer? 'cause really don't know how to make it.
Reply
#2

Make the string size 128, thats the maximum charachters that can be output to the screen.
Reply
#3

I mean if you've used that, that is makes a line under stand one.
Reply
#4

Quote:
Originally Posted by joeri55
Посмотреть сообщение
I mean if you've used that, that is makes a line under stand one.
Not sure i know what you mean check this topic, more or less everything you need to know about strings is there.
https://sampforum.blast.hk/showthread.php?tid=55261
Reply
#5

I mean for example:

Iggy says: Test etstetetett Test etstetete..
Iggy says: tesdadasd.

That when the line stops because of the limits it resumes further.
Reply
#6

You would need to use strmid, but a player can't enter more than 128 letters so..... Unless yor using pre-made strings i don't think it will work. Correct me if im wrong someone.
strmid
Reply
#7

I want that when the string limit has reached it makes another string.
Reply
#8

Something like this,
pawn Код:
new
    str1[256],
    str2[128];
format(str1, 256,"blahhhhhhhh x256");// this would need to be over 128 charachters long
strmid(str2, str1, 128, 256);//puts everything after 128 cells/letters into str2
Reply
#9

This is my realchat:
Код:
    if (realchat)
    {
        if(gPlayerLogged[playerid] == 0)
        {
            return 0;
          }
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(!IsPlayerInAnyVehicle(playerid))
        {
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
                format(string, sizeof(string), "Stranger Says: %s", text);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
            {
                format(string, sizeof(string), "%s Says: %s", sendername, text);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
        }
        else
        {
            new carid = GetPlayerVehicleID(playerid);
            new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
            if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsASweeper(carid) || IsAHarvest(carid) || IsADrugHarvest(carid) || IsATank(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
              {
                if(PlayerInfo[playerid][pMaskuse] == 1)
                {
                    format(string, sizeof(string), "Stranger Says: %s", text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
                else
                {
                    format(string, sizeof(string), "%s Says: %s", sendername, text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
            }
            else
            {
                if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                {
                    if(PlayerInfo[playerid][pMaskuse] == 1)
                    {
                        format(string, sizeof(string), "(Windows Shut) Stranger Says: %s", text);
                        ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                    else
                    {
                        format(string, sizeof(string), "(Windows Shut) %s Says: %s", sendername, text);
                        ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                }
                else
                {
                    if(PlayerInfo[playerid][pMaskuse] == 1)
                    {
                        format(string, sizeof(string), "(Windows Open) Stranger Says: %s", text);
                        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                    else
                    {
                        format(string, sizeof(string), "(Windows Open) %s Says: %s", sendername, text);
                        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                }
            }
        }
        return 0;
    }
    return 1;
}
How do I make it in there?
Reply
#10

You will have to see how much you can most talk then use strmid and send another client message if you get me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)