Stuck with /me
#1

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

pawn Код:
PlayerLocalMessage(15.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
(used for IC chat)

and here is the base of it
pawn Код:
PlayerLocalMessage(Float:radi, playerid, string[],col1,col2,col3,col4,col5); // Local message
And here is my... old me from old project.

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;
  }
And with added

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;
  }
I get error of

pawn Код:
: error 017: undefined symbol "string"
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
pawn Код:
RemovePlayerUnderscoreString(Character[playerid][cName]));
is to get a character name (there are two types of name, master account and character name, character name is rp)
Reply


Messages In This Thread
Stuck with /me - by iNorton - 23.10.2011, 15:38
Re: Stuck with /me - by .:Kaos:. - 23.10.2011, 15:44
Re: Stuck with /me - by iNorton - 23.10.2011, 15:50
Re: Stuck with /me - by JaTochNietDan - 23.10.2011, 16:01
Re: Stuck with /me - by iNorton - 23.10.2011, 16:03
Re: Stuck with /me - by JaTochNietDan - 23.10.2011, 16:07
Re: Stuck with /me - by iNorton - 23.10.2011, 16:08
Re: Stuck with /me - by .:Kaos:. - 23.10.2011, 16:11
Re: Stuck with /me - by iNorton - 23.10.2011, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)