Problem with isnull and sscanf, returning unknown command.
#3

why im using SetPlayerChatBuble ?
when he/she using /me
example: /me test
the text will appear on the head :O
pawn Код:
CMD:me(playerid, params[])
{
    new string[128];
    new pname[MAX_PLAYER_NAME];
    if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "usage: /me [action]");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "{FFFF00}%s{FFFFFF}: %s", pname, params);
    SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)