Sscanf Problem
#2

To fix your id Bugs, change "u" to "d", that worked for me,

and:

pawn Код:
CMD:shout(playerid, params[]) {
    return cmd_s(playerid, params);
}

CMD:s(playerid, params[])
{
    if(gPlayerLogged{playerid}
    == 0) {
        SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
        return 1;
    }

    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/s)hout [shout chat]");
    new string[128];
    if(PlayerInfo[playerid][pMask] == 0) {
        format(string, sizeof(string), "(shouts) %s!", params);
        SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
        format(string, sizeof(string), "%s shouts: %s!", GetPlayerNameEx(playerid), params);
        ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
    }
    if(PlayerInfo[playerid][pBugged] == 1&&PlayerInfo[playerid][pMask] == 0) {
        format(string, sizeof(string), "(bug) %s shouts: %s!", GetPlayerNameEx(playerid), params);
        SendBugMessage(2, COLOR_LIGHTGREEN, string);
    }
    if(PlayerInfo[playerid][pMask] == 1) {
        format(string, sizeof(string), "(shouts) %s!", params);
        SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
        format(string, sizeof(string), "Stranger shouts: %s!", params);
        ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
    }
    if(PlayerInfo[playerid][pBugged] == 1&&PlayerInfo[playerid][pMask] == 1) {
        format(string, sizeof(string), "(bug) Stranger shouts: %s!", GetPlayerNameEx(playerid), params);
        SendBugMessage(2, COLOR_LIGHTGREEN, string);
    }
    return 1;
}
I will explain :

In CMD : shout, you were returning CMD : shout again...
Reply


Messages In This Thread
Sscanf Problem - by Biess - 19.06.2013, 16:43
Re: Sscanf Problem [URGENT] - by SilverKiller - 19.06.2013, 17:26
Re: Sscanf Problem [URGENT] - by Biess - 19.06.2013, 17:35
Re: Sscanf Problem [URGENT] - by SilverKiller - 19.06.2013, 17:36
Re: Sscanf Problem [URGENT] - by Biess - 19.06.2013, 17:41
Re: Sscanf Problem [URGENT] - by SilverKiller - 19.06.2013, 17:47
Re: Sscanf Problem [URGENT] - by Biess - 19.06.2013, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)