sscanf warnings
#1

from my samp log
SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[21:50:07] filterscripts = "" (string)
[21:50:07]
[21:50:07] Server Plugins
[21:50:07] --------------
[21:50:07] Loading plugin: mysql
[21:50:07]

> MySQL plugin R5 successfully loaded.

[21:50:07] Loaded.
[21:50:07] Loading plugin: streamer
[21:50:07]

*** Streamer Plugin v2.5 by Incognito loaded ***

[21:50:07] Loaded.
[21:50:07] Loading plugin: sscanf
[21:50:07]

[21:50:07] ===============================

[21:50:07] sscanf plugin loaded.

[21:50:07] Version: 2.8.1

[21:50:07] © 2012 Alex "******" Cole

[21:50:07] ===============================

[21:50:07] Loaded.
[21:50:07] Loaded 3 plugins.

[21:50:08]
[21:50:08] Filterscripts
[21:50:08] ---------------
[21:50:08] Loaded 0 filterscripts.

[21:50:08] [MYSQL]: Connection to `Pilots Heaven` succesful!
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:50:08] Failed to load airline.
[21:50:08] ** 33 <-> Airline Vehicles loaded from <-> MySQL **
[21:50:08] ** 109 <-> Vehicles loaded from <-> MySQL **
[21:50:08]
----------------------------------
[21:50:08] Pilots Heaven | By Mehdi
[21:50:08] ----------------------------------

[21:50:08] Number of vehicle models: 118
[21:51:03] Incoming connection: 192.168.0.101:50854
[21:51:03] [join] Mehdi has joined the server (0:192.168.0.101)
[21:51:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:51:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:51:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:51:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:51:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:51:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[21:51:03] [part] Mehdi has left the server (0:2)
i couldn't connect to Server it closes after i join
i have latest sscanf
any help?
Reply
#2

Clearly you're using an old script.

All lines in your script using 'sscanf' with a string ('s') parameter have to be changed to include the expected size of the string (if the string says "hello world" then it has 11 characters, +1 for EOS = 12)

Here's how all 's' parameters should look now:
pawn Код:
sscanf(...,"s[12]",...); //Where s = string parameter, [##] = size of string
Reply
#3

still dont understand see look here is what i am using now
Код:
like this one?
sscanf(line, "p<|>s[256]s[30]ds[64]s[64]dds[30]s[64]s[64]",
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)