Not performing correctly (Commands)
#6

pawn Код:
CMD:b(playerid, params[])
{
    new string[128];
    if(isnull(params)) return SCM(playerid,LIGHTBLUE,"Use: {FFFFFF}/b [text]");
    format(string, sizeof(string), "%s: (( %s ))",InGameChatRemoveUnderscore(playerid),params);
    ProxDetector(25.0, playerid, string, COLOR_WHITE);
    return 1;
}
ProxDetector is above, and here is InGameChat...
pawn Код:
InGameChatRemoveUnderscore(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i; i <= MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}
The thing is, if I type /b, it shows the usage, but anything after that like /b test will show command not recognized.
Reply


Messages In This Thread
[SOLVED]Not performing correctly (Commands) - by Sime30 - 06.07.2015, 15:25
Re: Not performing correctly (Commands) - by SickAttack - 06.07.2015, 15:39
Re: Not performing correctly (Commands) - by JaydenJason - 06.07.2015, 15:42
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 15:44
Re: Not performing correctly (Commands) - by SickAttack - 06.07.2015, 15:45
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 15:57
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 20:16
Re: Not performing correctly (Commands) - by SickAttack - 06.07.2015, 22:14
Re: Not performing correctly (Commands) - by Sime30 - 06.07.2015, 22:30
AW: Not performing correctly (Commands) - by Kaliber - 06.07.2015, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)