Need help with Admin FS
#1

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
Reply
#2

Change the array size of the tmp and tmp2 to 256, then it should work.
Reply
#3

I'm rather wondering why you're using strtok with dcmd, while dcmd has been created to work with sscanf.
Reply
#4

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.
Reply
#5

Quote:
Originally Posted by Mystique
Посмотреть сообщение
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.
Huh?
Can you give me some informations of "sscanf"?
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)