Character Limit - Help me, sir! -
Daniel_June - 27.01.2010
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.
Re: Character Limit - Help me, sir! -
Cry_Wolf - 27.01.2010
post the /me command so we can fix that.
Re: Character Limit - Help me, sir! -
Goobiiify - 27.01.2010
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.
Re: Character Limit - Help me, sir! -
Mikkel - 27.01.2010
And Fathead don't want to help us
EDIT: And Fathead actually helped us
Re: Character Limit - Help me, sir! -
Daniel_June - 27.01.2010
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.
Re: Character Limit - Help me, sir! -
Correlli - 27.01.2010
Increase the cell size in the array variable.
Re: Character Limit - Help me, sir! -
Daniel_June - 27.01.2010
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.
Re: Character Limit - Help me, sir! -
Correlli - 27.01.2010
Post your command.
Re: Character Limit - Help me, sir! -
Daniel_June - 27.01.2010
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;
}
Re: Character Limit - Help me, sir! -
Daniel_June - 27.01.2010
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