Help please enter and help
#2

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:
pawn Код:
CMD:pm(playerid, params[])
{
    new receiver, pmtext[128];
    sscanf(params, "rs[128]", receiver, pmtext);

    CallLocalFunction("OnPlayerPrivmsg", "iis", playerid, receiver, pmtext);
    return 1;
}
Also, your script is using too much resources, which causes that code size thing to display.
Reply


Messages In This Thread
Help please enter and help - by Aloushi - 21.02.2012, 19:58
Re: Help please enter and help - by Vince - 21.02.2012, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)