Need help with Admin FS - 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: Need help with Admin FS (
/showthread.php?tid=166037)
Need help with Admin FS -
Min - 07.08.2010
Im trying to make a simple Admin FS,but,there are 2 error after what I'd scripted.
and I need a help :/
Scripts:
http://pastebin.com/QpqxiwM1
Error:
Код:
C:\Documents and Settings\user\Desktop\SA-MP2\filterscripts\testxd.pwn(184) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\user\Desktop\SA-MP2\filterscripts\testxd.pwn(189) : error 047: array sizes do not match, or destination array is too small
Re: Need help with Admin FS -
Mystique - 07.08.2010
Change the array size of the tmp and tmp2 to 256, then it should work.
Re: Need help with Admin FS -
Hiddos - 07.08.2010
I'm rather wondering why you're using strtok with dcmd, while dcmd has been created to work with sscanf.
Re: Need help with Admin FS -
Mystique - 07.08.2010
He's probably using it since he's making it based on this tutorial.
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Yeah and as Hiddos said, use sscanf instead. It's much easier and faster.
Re: Need help with Admin FS -
Min - 07.08.2010
Quote:
Originally Posted by Mystique
|
Huh?
Can you give me some informations of "sscanf"?
Re: Need help with Admin FS -
r0b - 07.08.2010
Read this and scroll down to sscanf:
https://sampwiki.blast.hk/wiki/Fast_Commands
and here is the sscanf code:
https://sampwiki.blast.hk/wiki/Sscanf