sscanf warning
#1

Hi

I am getting this warning when I start my server and it spams the whole server log. I have updated all my plugins and includes but this started occurring when I added a Filterscript code into my gamemode's code and I cant seem to fix this and I cant see were the problem is.
Код:
[15:02:12] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
Has anyone else had this problem and know how to fix it?
THanks
Reply
#2

You most likely got something like this in your script, p<|> or something else but it should be like this p<,>
Reply
#3

This is the only thing that I have with "p<"
Код:
(new p=0; p<MAX_VEHICLES; p++)
Could that be the problem and if so how would I fix it?
Reply
#4

Do you use sscanf to load some files? If so post the code
Reply
#5

Код:
if(sscanf(params, "ui", giveplayerid, fac)) return SendClientMessage(playerid, -1, "USAGE: /makeleader [playerid/partofname] [faction]");
Stuff like that
Reply
#6

Like this.
pawn Код:
if (sscanf(szFileLine, "p<=>s[8]s[32]", szIniName, szIniValue))
{
    printf("Invalid INI format line");
}
https://sampforum.blast.hk/showthread.php?tid=120356
Reply
#7

Код:
else if(strcmp(key, "Pos") == 0) sscanf(line[s], "p,ffff", VehiclePos[i][0], VehiclePos[i][1],
				VehiclePos[i][2], VehiclePos[i][3]);
			else if(strcmp(key, "Colors") == 0) sscanf(line[s], "p,dd", VehicleColor[i][0], VehicleColor[i][1]);
Reply
#8

pawn Код:
else if(strcmp(key, "Pos") == 0) sscanf(line[s], "p<,>ffff", VehiclePos[i][0], VehiclePos[i][1],
                VehiclePos[i][2], VehiclePos[i][3]);
            else if(strcmp(key, "Colors") == 0) sscanf(line[s], "p<,>dd", VehicleColor[i][0], VehicleColor[i][1]);
Reply
#9

Thank you it fixed it. +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)