[HELP] My PM command..
#1

Hello..

This is my CMD:

pawn Код:
CMD:pm(playerid, params[])
{
    new str[256], str2[256], id, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
    if(sscanf(params, "us", id, str2))
    {
        SendClientMessage(playerid, 0xFF0000FF, "Usage: /pm <id> <message>");
        return 1;
    }
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Player not connected");
    if(playerid == id) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You cannot pm yourself!");
    GetPlayerName(playerid, Name1, sizeof(Name1));
    GetPlayerName(id, Name2, sizeof(Name2));
    format(str, sizeof(str), "PM To %s(ID %d): %s", Name2, id, str2);
    SendClientMessage(playerid, COLOR_ORANGE, str);
    format(str, sizeof(str), "PM From %s(ID %d): %s", Name1, playerid, str2);
    SendClientMessage(id, COLOR_ORANGE, str);
    return 1;
}
The problem is.. that it just limits the Private Message so when im sending a message it dont even let me send over 30 characters..

Help please.. to increase the letters it lets go on..
Reply


Messages In This Thread
[HELP] My PM command.. - by Oscii - 11.05.2012, 21:39
Re: [HELP] My PM command.. - by iGetty - 11.05.2012, 21:41
Re: [HELP] My PM command.. - by Oscii - 11.05.2012, 21:45
Re: [HELP] My PM command.. - by iGetty - 11.05.2012, 21:49
Re: [HELP] My PM command.. - by Oscii - 11.05.2012, 21:56
Re: [HELP] My PM command.. - by iGetty - 11.05.2012, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)