SA-MP Forums Archive
PM Command In Zcmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PM Command In Zcmd (/showthread.php?tid=264323)



PM Command In Zcmd - M4z - 25.06.2011

Attempted a message command, but failed.
Basically it works but I can't retrieve the name of who sent the message.
Code: http://pastebin.com/Lw3JWHKb


Re: PM Command In Zcmd - Tommy_Mandaz - 25.06.2011

Replace this:
pawn Код:
format(string, sizeof(string), "Message From %s: %s",playerid,MSG);
With this:
pawn Код:
format(string, sizeof(string), "Message From %s: %s",pName,MSG);



Re: PM Command In Zcmd - M4z - 25.06.2011

Ahh, such a simple mistake, thanks for the quick reply.