how to make Params 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)
+--- Thread: how to make Params in ZCMD?? (
/showthread.php?tid=329855)
how to make Params in ZCMD?? -
niels44 - 30.03.2012
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
Re: how to make Params in ZCMD?? -
BigD - 30.03.2012
You mean using sscanff?
Re: how to make Params in ZCMD?? -
sjvt - 30.03.2012
If you use sscanf
pawn Код:
if (sscanf(params, "d", giveplayerid))
{
Re: how to make Params in ZCMD?? -
OxyG3N - 30.03.2012
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
Re: how to make Params in ZCMD?? -
sjvt - 30.03.2012
Quote:
Originally Posted by OxyG3N
|
did already edit my post
Quote:
Originally Posted by sjvt
If you use sscanf
pawn Код:
new giveplayerid; if (sscanf(params, "d", giveplayerid)) {
|
Re: how to make Params in ZCMD?? -
niels44 - 30.03.2012
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?
AW: how to make Params in ZCMD?? -
Nero_3D - 30.03.2012
Check this thread ->
sscanf 2.5 - Fixed for ALL SERVERS
Re: how to make Params in ZCMD?? -
niels44 - 30.03.2012
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