how to make Params in ZCMD??
#1

hey guys,

im here now for long time already, and i know a lot of pawn features now, but i still dont know how to make params or wutever they are called in a cmd..

so for example:
/hey [playerid]

how to make that [playerid]??

i dont want the code but i want to know how i can create that param...

pls tell me

greets niels

PS: if there is a tut for this then you also may give me that one XD
Reply
#2

You mean using sscanff?
Reply
#3

If you use sscanf

pawn Код:
if (sscanf(params, "d", giveplayerid))
{
Reply
#4

Quote:
Originally Posted by sjvt
Посмотреть сообщение
With what? sscanf, strcmp, dcmd etc?

EDIT: didnt read


Hello, read this tutorial how to use zcmd and sscanf https://sampforum.blast.hk/showthread.php?tid=300397
Reply
#5

Quote:
Originally Posted by OxyG3N
Посмотреть сообщение


Hello, read this tutorial how to use zcmd and sscanf https://sampforum.blast.hk/showthread.php?tid=300397
did already edit my post

Quote:
Originally Posted by sjvt
Посмотреть сообщение
If you use sscanf

pawn Код:
new giveplayerid;
if (sscanf(params, "d", giveplayerid))
{
Reply
#6

okay... i knew it also could with sscanf, but i dont get that "d"... what that "d"means? is it same as %d and like %s as string?
Reply
#7

Check this thread -> sscanf 2.5 - Fixed for ALL SERVERS
Reply
#8

ah yeah that was very helpfull especially that with:
the code
sscanf(hey blablabla
will do:
hey

now i understand more of it thnx for help guys,

i also saw somethings with dini or something but i didnt understood that XD

anyways thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)