Commands
#1

I am learning at the moment and im working on makeing a /suspect command but i have seen like four diffrent things for commands

dcmd
zcmd
Sscanf
strtok

All of these things i sort of get but not 100% so which one of those should i use to make a /suspect command and do i need any includes and what do i need to define :P sorry i am new but i gota learn somehow and samp wiki is proveing unhelpfull at the moment.
Reply
#2

You should use zcmd+sscanf.
You should not use dcmd+strtok.
Reply
#3

Quote:
Originally Posted by Virtual1ty
You should use zcmd+sscanf.
You should not use dcmd+strtok.
Thank you i will but what includes do i need and what do i need to define?
Reply
#4

Quote:
Originally Posted by abineri
Quote:
Originally Posted by Virtual1ty
You should use zcmd+sscanf.
You should not use dcmd+strtok.
Thank you i will but what includes do i need and what do i need to define?
I made my suspect command using zcmd+sscanf, now there's 2 different sscanf
versions, ver2.0(it's a bit hard to learn(atleast for me)), and the old version on wiki.
zcmd,sscanf[2.0], sscanf[old version]
You can find examples for sscanf[old ver.] all around the forum.
Reply
#5

Quote:
Originally Posted by Virtual1ty
Quote:
Originally Posted by abineri
Quote:
Originally Posted by Virtual1ty
You should use zcmd+sscanf.
You should not use dcmd+strtok.
Thank you i will but what includes do i need and what do i need to define?
I made my suspect command using zcmd+sscanf, now there's 2 different sscanf
versions, ver2.0(it's a bit hard to learn(atleast for me)), and the old version on wiki.
zcmd,sscanf[2.0], sscanf[old version]
You can find examples for sscanf[old ver.] all around the forum.
so if i used the old one thats on wiki do i just copy that code into pawno and comile it?
Reply
#6

Yes, add it somewhere ontop, or somewhere on the bottom of your script. (the sscanf function)
Then you use the sscanf function inside the command.
(if you are going to use zcmd - which is at the moment, the fastest command processor.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)