SA-MP Forums Archive
/pm HELP!?! - 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 HELP!?! (/showthread.php?tid=192452)



/pm HELP!?! - BigAl - 22.11.2010

Hello, i was told that the easiest way to make a /pm command was to do it via strtok, so i was wondering if anyone could give me an example of a PM script, Please.


I will appreciate it if you do!.


Re: /pm HELP!?! - [MWR]Blood - 22.11.2010

The best thing before posting such a topic is searching by yourself.
http://forum.sa-mp.com/search.php?do=process



Re: /pm HELP!?! - BigAl - 22.11.2010

Erm, what do i search, because everything i seem to search, doesnt turn out possitive :/


Re: /pm HELP!?! - TheXIII - 22.11.2010

strtok is not the best way to create a PM command, or any command. Use zcmd + sscanf. Search for these, they come with documentation.


Re: /pm HELP!?! - BMUK - 23.11.2010

There is a /pm command that comes with the server download.

The command is inside the "Base" filterscript.

Its written with strcmp and strtok. Which works just fine!


Re: /pm HELP!?! - DevilG - 23.11.2010

Use zcmd;
Clue:

Show the message that player typed to both himself and the guy that he's sending PM of.