warning(please help)
#1

i get this warning when i check my Server_Logs
pawn Код:
SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team

[10:49:32] filterscripts = ""  (string)
[10:49:32]
[10:49:32] Server Plugins
[10:49:32] --------------
[10:49:32]  Loading plugin: mysql
[10:49:32]

  > MySQL plugin R5 successfully loaded.

[10:49:32]   Loaded.
[10:49:32]  Loading plugin: streamer
[10:49:32]

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

[10:49:32]   Loaded.
[10:49:32]  Loading plugin: sscanf
[10:49:32]

[10:49:32]  ===============================

[10:49:32]       sscanf plugin loaded.    

[10:49:32]    (c) 2009 Alex "******" Cole

[10:49:32]  ===============================

[10:49:32]   Loaded.
[10:49:32]  Loaded 3 plugins.

[10:49:32]
[10:49:32] Filterscripts
[10:49:32] ---------------
[10:49:32]   Loaded 0 filterscripts.

[10:49:32] [MYSQL]: Connection to `lof` succesful!
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:32] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:49:33] ** 0 <-> Airline Vehicles loaded from    <-> MySQL          **
[10:49:34] ** 109   <-> Vehicles loaded from    <-> MySQL          **
[10:49:34]
----------------------------------
[10:49:34]  Life of Flying | By Zak Sampson
[10:49:34] ----------------------------------
i read from this:
https://sampforum.blast.hk/showthread.php?tid=120356
he said
sscanf warning: Strings without a length are deprecated, please add a destination size.

In the old system, strings were not required to have lengths but this introduced security problems with overflows. Now you must add a length or get the default of "32".
sscanf warning: Strings without a length are deprecated, please add a destination size.

In the old system, strings were not required to have lengths but this introduced security problems with overflows. Now you must add a length or get the default of "32".
i don't Understand him can you please explane to me were to find this 32
Reply
#2

Example:
pawn Код:
new message[120];
if(sscanf(params, "s", message)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /mycommand [message]");
This is incorrect. Notice how the variable 'message' has a string length of 120? In the sscanf line, there is nothing involved with the cell size of the variable 'message'. So the correct code would be:
pawn Код:
new message[120];
if(sscanf(params,"s[120]", message)) ...//etc.
So basically, where ever you're using a string in the sscanf function, make sure you add a string size.
Reply
#3

but were i find that line to replace it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)