Warning 219...at a preceding level
#2

Try this:

Код:
CMD:pm(playerid, params[])
{
    new pID, Msg[128];
    if(sscanf(params, "ds[128]", pID, Msg)) return SendClientMessage(playerid, -1, "USAGE: /pm [PlayerID] [Message]");
    if(pID == playerid) return SendClientMessage(playerid, 0xFF0000FF, "You can't PM to yourself!");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, 0xFF0000FF, "Invalid PlayerID or the PlayerID is not online!");
    if(DisablePM[pID] == 1) return GameTextForPlayer(playerid, "~n~~n~~r~Player Disabled PM", 3000, 5);
    new str[256], pNamee[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pNamee, sizeof(pNamee));
    GetPlayerName(pID, pName2, sizeof(pName2));
    format(str, sizeof(str), "PM Sent to %s (ID: %d): %s", pName2, pID, Msg);
    SendClientMessage(playerid, -1, str);
    format(str, sizeof(str), "PM from %s (ID: %d): %s", pNamee, playerid, Msg);
    SendClientMessage(pID, -1, str);
    return 1;
}
Reply


Messages In This Thread
Warning 219...at a preceding level - by kbalor - 26.07.2012, 18:50
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 18:57
Re: Warning 219...at a preceding level - by kbalor - 26.07.2012, 19:08
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 19:12
Re: Warning 219...at a preceding level - by kbalor - 26.07.2012, 19:22
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 19:34
Re: Warning 219...at a preceding level - by FireCat - 26.07.2012, 19:41
Re: Warning 219...at a preceding level - by kbalor - 26.07.2012, 19:43
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 21:08

Forum Jump:


Users browsing this thread: 3 Guest(s)