Character Limit - Help me, sir!
#1

Hello, i use the GTA RP Gamemode, and there's a character limit, so if you fx. do a /me command, it cuts of like halfway through, it's some weird limit, and i've looked through the script but i couldn't anything.
Reply
#2

post the /me command so we can fix that.
Reply
#3

You're using a LARP edit and you need to put your string to a bigger value. I recommend to use [MAX_STRING] instead of the old one.
Reply
#4

And Fathead don't want to help us

EDIT: And Fathead actually helped us
Reply
#5

Quote:
Originally Posted by Cry_Wolf
post the /me command so we can fix that.
it's like i do the command: /me reaches inside his jacket and pulls out a Glock. 45 clicking the safety switch off
And like only 3/4 of that actually appears on the screen.
Reply
#6

Increase the cell size in the array variable.
Reply
#7

Quote:
Originally Posted by Don Correlli
Increase the cell size in the array variable.
How, sir? Can you please help me, i do not have much experience within scripting. I can only make teleports and edit scripts.
Reply
#8

Post your command.
Reply
#9

This? :
Код:
if(strcmp(cmd, "/me", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(gPlayerLogged[playerid] == 0)
	    {
	      SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");
	      return 1;
	    }
			GetPlayerName(playerid, sendername, sizeof(sendername));
			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_GRAD2, "USAGE: /me [action]");
				return 1;
			}
			if(PlayerInfo[playerid][pMaskuse] == 1)
			{
			  format(string, sizeof(string), "* Stranger %s", result);
			}
			else
			{
				format(string, sizeof(string), "* %s %s", sendername, result);
			}
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			printf("%s", string);
		}
		return 1;
	}
Reply
#10

Listen, the big problem is that it's not only the /me command. It is all the other commands too! Like saying something in /a /o /b or just talking IC'ly
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)