/pm bug
#7

Try.
you use:
pawn Код:
new string[128];
format(string, sizeof(string),"this is message");
SendClientMessage(id, COLOR, string);
format(string, sizeof(string),"this is other message");
SendClientMessage(playerid, COLOR, string);
format(string, sizeof(string),"this is other message");
print(string);
pawn Код:
COMMAND:pm(playerid,params[])
{
    static id, mess, Nome1[24], Nome2[24],string[128];
       
    if(sscanf(params,"us",id,mess))
        return SendClientMessage(playerid,red,"USAGE: /pm [id] [message] - will send a private message to a player.");
       
    if(IsPlayerConnected(id)) return SendClientMessage(playerid,red,"Invalid ID.");
    GetPlayerName(playerid,Nome1,sizeof(Nome1));
    GetPlayerName(id,Nome2,sizeof(Nome2));
    format(string,sizeof(string),"PM sent to %s.",Nome2);SendClientMessage(playerid,COLOR_LIGHTGREEN,text1);
    format(string,sizeof(string),"PM from %s: %s",Nome1,mess);
    SendClientMessage(playerid,COLOR_LIGHTGREEN,text2);
    return 1;
}
Reply


Messages In This Thread
/pm bug - by ColdIce - 28.04.2011, 12:53
Re: /pm bug - by SchurmanCQC - 28.04.2011, 12:55
Re: /pm bug - by ColdIce - 28.04.2011, 13:08
Re: /pm bug - by [MWR]Blood - 28.04.2011, 13:10
Re: /pm bug - by ColdIce - 28.04.2011, 13:17
Re: /pm bug - by Seven_of_Nine - 28.04.2011, 14:22
Re: /pm bug - by TheGarfield - 28.04.2011, 14:55
Re: /pm bug - by ScRaT - 28.04.2011, 14:57
Re: /pm bug - by ColdIce - 28.04.2011, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)