Sscanf warning: No default value found. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Sscanf warning: No default value found. (
/showthread.php?tid=528683)
Sscanf warning: No default value found. -
JordanSmith - 29.07.2014
Hello all, when I make a House, business or a dynamic door I get this error every time... How do I fix this?
Code:
Quote:
[18:53:56] [zcmd] [James]: /ddnext
[18:54:06] [zcmd] [James]: /ddedit exterior 53
[18:54:06] sscanf warning: No default value found.
[18:54:14] [zcmd] [James]: /ddedit pickupmodel 53 1318
[18:54:14] sscanf warning: No default value found.
[18:54:55] [zcmd] [James]: /ddedit faction 15 3
[18:54:55] sscanf warning: No default value found.
|
Re: Sscanf warning: No default value found. -
DaDenz - 30.07.2014
Could you paste the code?
Re: Sscanf warning: No default value found. -
JordanSmith - 31.07.2014
Quote:
Could you paste the code?
|
Here is the code.
Code:
Quote:
new string[128], choice[32], doorid, amount;
if(sscanf(params, "s[32]dD", choice, doorid, amount))
{
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /ddedit [Name] [DoorID] [Amount]");
SendClientMessageEx(playerid, COLOR_WHITE, "Available names: Exterior | Interior | CustomInterior | CustomExterior | VIP");
SendClientMessageEx(playerid, COLOR_WHITE, "Family | Faction | Wanted | Admin | VehicleAble | Color | PickupModel | Delete");
return 1;
}
|
Re: Sscanf warning: No default value found. -
Konstantinos - 31.07.2014
As the error states, you haven't added any default value. Let's say you want the default value to be 1, that'd be:
pawn Код:
if(sscanf(params, "s[32]dD(1)", choice, doorid, amount))