23.10.2011, 15:38
Hai there... I know when you see /me your like "Oh noez..." well here I am stuck and bare with me...
The problem is, I am using Norn's SQLlite RP Base script, did a lot of commands but I am stuck with local commands aka /me, /do & /b.
I tried a lot of /me's and nope didn't work as the script already has its own local chat implemented which is
(used for IC chat)
and here is the base of it
And here is my... old me from old project.
And with added
I get error of
the normal one without playerlocalmessage works but it sends /me to everyone.
(I don't wanna post it in his topic where the script belongs because I know it will be like... gtfo read the script...)
So could anyone help me figure the puzzle out?
EDIT: I have forgotten to say
is to get a character name (there are two types of name, master account and character name, character name is rp)
The problem is, I am using Norn's SQLlite RP Base script, did a lot of commands but I am stuck with local commands aka /me, /do & /b.
I tried a lot of /me's and nope didn't work as the script already has its own local chat implemented which is
pawn Код:
PlayerLocalMessage(15.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
and here is the base of it
pawn Код:
PlayerLocalMessage(Float:radi, playerid, string[],col1,col2,col3,col4,col5); // Local message
pawn Код:
CMD:me(playerid, params[])
{
if(!strlen(params))return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, !strlen(params));
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}
pawn Код:
CMD:me(playerid, params[])
{
if(!strlen(params))return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, !strlen(params));
PlayerLocalMessage(15.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 1;
}
pawn Код:
: error 017: undefined symbol "string"
(I don't wanna post it in his topic where the script belongs because I know it will be like... gtfo read the script...)
So could anyone help me figure the puzzle out?
EDIT: I have forgotten to say
pawn Код:
RemovePlayerUnderscoreString(Character[playerid][cName]));