sscanf and 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: sscanf and zcmd (
/showthread.php?tid=603601)
sscanf and zcmd -
ScIrUsna - 25.03.2016
Hi,
It's any difference i include sscanf2 or zcmd first?
#include sscanf2
#include zcmd
or
#include zcmd
#include sscanf2
?
Next question:
can i use how many times sscanf for ex cmdtext it's will be not modificated?
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
sscanf(cmdtext, "...", ...);
//actions
sscanf(cmdtext, "...", ...);
//actions
sscanf(cmdtext, "...", ...);
//actions
return 1;
}
Re: sscanf and zcmd -
Joron - 25.03.2016
You include like this..
PHP код:
#include <zcmd>
#include <sscanf2>
And u Make a command like this
PHP код:
CMD:Test(playerid,params[])
{
//Do stuff
return 1;
}
if is that what u mean
Re: sscanf and zcmd -
ScIrUsna - 25.03.2016
No i just asking what include first zcmd or sscanf it's difference what include first
Re: sscanf and zcmd -
Joron - 25.03.2016
Quote:
Originally Posted by ScIrUsna
No i just asking what include first zcmd or sscanf it's difference what include first
|
either one could include first it doesnt matter...
Re: sscanf and zcmd -
DRIFT_HUNTER - 25.03.2016
Two includes does not hook at same things so it doesn't matter witch one you include first.
You can use sscanf as may times you want.