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.