/me Long - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /me Long (
/showthread.php?tid=411773)
/me Long -
UnAngel - 30.01.2013
Hello
I do not understand what the problem and after a few stops writing characters can someone please change me the command to do that if I run out of line it will open another line thanks to helpers
PHP код:
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;
}
Re: /me Long -
EpicNinja - 30.01.2013
pawn Код:
command(me, playerid, params[]) {
new
string[200];
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;
}
Re: /me Long -
UnAngel - 30.01.2013
but I mean, if you write 150 words this example will open another line you could write another 150 words
Re: /me Long -
Threshold - 30.01.2013
Add this on the line after NearByMessage:
pawn Код:
if(strlen(params) > 128)
{
format(string, sizeof(string), "%s", params[128]);
NearByMessage...
}
Re: /me Long -
UnAngel - 30.01.2013
can you re write the commands please
Re: /me Long -
UnAngel - 31.01.2013
bump
Re: /me Long -
Stephano - 31.01.2013
All he's saying is this:
Код:
NearByMessage(playerid, COLOR_PURPLE, string);
if(strlen(params) > 128)
{
format(string, sizeof(string), "%s", params[128]);
NearByMessage...
}
Player[playerid][MeActions]++;