21.02.2012, 20:17
OnPlayerPrivmsg was a callback in SA-MP 0.2X but it was removed in 0.3. You'll have to forward the callback and reference it from your /pm command. Something like:
Also, your script is using too much resources, which causes that code size thing to display.
pawn Код:
CMD:pm(playerid, params[])
{
new receiver, pmtext[128];
sscanf(params, "rs[128]", receiver, pmtext);
CallLocalFunction("OnPlayerPrivmsg", "iis", playerid, receiver, pmtext);
return 1;
}