player is not connected?
#5

pawn Код:
dcmd_pm(playerid, params[])
{
    new targetid;
    new string[128];
    new message[128];
    if(sscanf(params,"uz",targetid,message)) return SM(playerid,red,"Error: /pm [id/name] [message]");
    else if(targetid== INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFFFFFFFF, "Not connected.");
    else
    {
        format(string, sizeof(string),"PM: %s(id: %d): %s",gPlayer[playerid][gName],message);
        SendClientMessage(targetid,PLAYER_COLOR_YELLOW,string);
    }
    return 1;
}
Reply


Messages In This Thread
player is not connected? - by Seven. - 24.09.2010, 15:13
Re: player is not connected? - by Ash. - 24.09.2010, 15:46
Re: player is not connected? - by Seven. - 24.09.2010, 15:53
Re: player is not connected? - by yakitashax - 24.09.2010, 16:19
Re: player is not connected? - by The_Moddler - 24.09.2010, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)