25.05.2013, 13:20
So I just used a command for the dynamic doors that we recently added and I edited the exterior of a dynamic door, everything works perfectly and awesome, but I looked at the rcon consle and I suddenly found this error: [SSCANF format specifier does not match parameter count], What should I do? can someone help me?
pawn Код:
if(!strcmp(params, "exterior", true, 8))
{
if(sscanf(params, "s[128]i", params, idx, text)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /editdoor exterior [doorid]");
if(DoorInfo[idx][dType] == 0) return SendClientMessage(playerid, COLOR_GREY, "Invalid door id.");
DoorInfo[idx][dOInt] = GetPlayerInterior(playerid);
DoorInfo[idx][dOVW] = GetPlayerVirtualWorld(playerid);
GetPlayerFacingAngle(playerid, DoorInfo[idx][dOA]);
GetPlayerPos(playerid, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ]);
DestroyDynamicPickup(DoorInfo[idx][dPickup]);
DoorInfo[idx][dPickup] = CreateDynamicPickup(DoorInfo[idx][dType], 1, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ], DoorInfo[idx][dOVW], DoorInfo[idx][dOInt]);
DestroyDynamic3DTextLabel(DoorInfo[idx][dTextID]);
format(string, sizeof(string), "ID: %d\n%s", idx, DoorInfo[idx][dText]);
DoorInfo[idx][dTextID] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ]+0.3, 15);
format(string, sizeof(string), " You have set door ID %d's exterior to your coordinates. (Int: %d | VW: %d)", idx, GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid, COLOR_WHITE, string);
}