Can someone take a look at this?
#1

pawn Код:
command(noteplayer, playerid, params[])
{
    new pid;
    new note[128];
    new string[128];
   
    if( PlayerInfo[playerid][Admin] >= 1)
    {
        if(sscanf(params, "i", pid, note))
        {
            SendClientMessage(playerid, COLOUR_ORANGE, "Hint: /noteplayer (playerid) (note)");
            return 1;
        }
        if(!IsPlayerConnected(pid))
        {
            SendClientMessage(playerid, COLOUR_ORANGE, "That player ID is not connected.");
            return 1;
        }
        format(string, sizeof(string), "%s",note);
        GameTextForPlayer(pid, "~r %s", 10000, 0);
    }
    return 1;
}
No errors or warnings but in game it isn't sending the note. Can anyone spot what is wrong and provide help? :S
Reply


Messages In This Thread
Can someone take a look at this? - by cloudysky - 11.06.2011, 23:13
Re: Can someone take a look at this? - by ricardo178 - 11.06.2011, 23:25
Re: Can someone take a look at this? - by cloudysky - 12.06.2011, 10:57
Re: Can someone take a look at this? - by PrawkC - 12.06.2011, 11:02
Re: Can someone take a look at this? - by cloudysky - 12.06.2011, 11:14
Re: Can someone take a look at this? - by PrawkC - 12.06.2011, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)