sscanf warning
#1

I get this warning after adding a car saving system in my gamemode:

sscanf warning: Strings without a length are deprecated, please add a destination size.
Reply
#2

You should read the sscanf 2.0 topic because it looks like that you are using the plugin

you just need to add the size behind s

Example
pawn Код:
new string[32], number;
sscanf(text, "s[32]i", string, number);
Reply
#3

I figured its not my script, but a filterscript i was trying out..

Here is how it looks where i think its giving the problem:

Код:
if (!sscanf(buffer_str, BUFFER_READ_FORMAT , BUFFER_PARAMS(point)))
And

Код:
else if (!sscanf(buffer_str, OLD_BUF_READ_FORMAT, OLD_BUF_PARAMS(point)))
---------------------------^ I would like to know how to include the sizes there

I think this is a way to fix this one also:

Код:
if (sscanf(params, "ds["#MAX_POINT_NAME_LENGHT"]", para, name))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)