/pm problems
#5

Quote:
Originally Posted by jamesb93
This should work

pawn Код:
if(!strcmp(cmdtext[1],"pm",true,2))
    {
    if(!cmdtext[3]||!cmdtext[4])return SendClientMessage(playerid,0xF8DA07FF,"USAGE: /pm [playerid] [text]");
    new receiverid = strval(cmdtext[4]);
    if(!IsPlayerConnected(receiverid))return SendClientMessage(playerid,0xF8DA07FF,"Invalid Player ID!");
    new begintext = strfind(cmdtext[4]," ")+1;
    if(!strlen(cmdtext[begintext]))return SendClientMessage(playerid,0xF8DA07FF,"USAGE: /pm [playerid] [text]");
    OnPlayerPrivmsg(playerid, receiverid, cmdtext[begintext]);
    return 1;
    }
error 017: undefined symbol "OnPlayerPrivmsg"

0.3a doesn't have the OnPlayerPrivmsg Callback.

Reply


Messages In This Thread
/pm problems - by Rhemsis - 14.11.2009, 19:05
Re: /pm problems - by Donuts - 14.11.2009, 21:16
Re: /pm problems - by jamesb93 - 14.11.2009, 21:44
Re: /pm problems - by cristab - 14.11.2009, 21:49
Re: /pm problems - by Rhemsis - 14.11.2009, 22:52
Re: /pm problems - by jamesb93 - 14.11.2009, 22:56
Re: /pm problems - by Rhemsis - 14.11.2009, 23:05
Re: /pm problems - by jamesb93 - 14.11.2009, 23:18
Re: /pm problems - by Rhemsis - 14.11.2009, 23:24
Re: /pm problems - by Rhemsis - 16.11.2009, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)