Sscanf warning: No default value found.
#1

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.

Reply
#2

Could you paste the code?
Reply
#3

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;
}

Reply
#4

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))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)