Need help with my /o command, Again.
#1

Hello guys, as the title says. When i use /o Hi, it says in chat "ЈЈЈя". No mather what i say, it keeps saying ''ЈЈЈя''. Here are the codes, i would really appriciate it when someone could help me.

Код:
stock GetPlayersName(playerid)
{
    new playersName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playersName, MAX_PLAYER_NAME);
    for(new i = 0; i < strlen(playersName); i++)
    {
        if(playersName[i] == '_') playersName[i] = ' ';
    }
    return playersName;
}
Код:
COMMAND:o(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid,0xA3A3A3FF,"USAGE: /o [TEXT]");

    new string[126];
    format(string, sizeof(string), "(( %s: %s ))", GetPlayerName(playerid), params);
    SendClientMessageToAll(0xA3A3A3FF, string);
    return 1;
}
Reply


Messages In This Thread
Need help with my /o command, Again. - by CrazyManiac - 10.08.2012, 14:50
Re: Need help with my /o command, Again. - by CrazyManiac - 10.08.2012, 14:53
Re: Need help with my /o command, Again. - by Skaizo - 10.08.2012, 14:59
Re: Need help with my /o command, Again. - by Jstylezzz - 10.08.2012, 15:02
Re: Need help with my /o command, Again. - by CrazyManiac - 10.08.2012, 15:04
Re: Need help with my /o command, Again. - by CrazyManiac - 10.08.2012, 15:11
Re: Need help with my /o command, Again. - by Jstylezzz - 10.08.2012, 15:11
Re: Need help with my /o command, Again. - by CrazyManiac - 10.08.2012, 15:16
Re: Need help with my /o command, Again. - by CrazyManiac - 10.08.2012, 15:18
Re: Need help with my /o command, Again. - by Scenario - 10.08.2012, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)