15.04.2017, 00:02
I once made an thread on this forums about a tp system, anyhow i tried to do it by my self which it works greate only issue is im trying to ad and 3d text to it.. But when i try to create the tp it creates the 3d text good but when i try to change the name only one 3dtext name changes and im wondering why
Also whenever i start the local host it shows a message like this
i dont know how to fix it can you help me, i will be active on forums and is awaiting any reply
PHP код:
if(!strcmp(params, "text", true, 4))
{
if(sscanf(params, "s[128]is[128]", params, idx, text)) return SendClientMessage(playerid, error, "Usage: /dedit text [doorid] [text]");
if(DoorInfo[idx][dType] == 0) return SendClientMessage(playerid, error, "Invalid door id.");
format(DoorInfo[idx][dText], 128, "%s", text);
format(string, sizeof(string), ""COE"%s (%d)", DoorInfo[idx][dText] , idx);
UpdateDynamic3DTextLabelText(DoorInfo[idx][dTextID], -1, string);
format(DoorInfo[idx][iText], 128, "%s", text);
format(string, sizeof(string), ""COE"%s (%d)", DoorInfo[idx][iText] , idx);
UpdateDynamic3DTextLabelText(DoorInfo[idx][dTextID], -1, string);
format(string, sizeof(string), " You have set door ID %d's text to %s", idx, text);
SendClientMessage(playerid, -1, string);
}
if(!strcmp(params, "interior", true, 8))
{
if(sscanf(params, "s[128]i", params, idx, text)) return SendClientMessage(playerid, error, "Usage: /dedit interior [doorid]");
if(DoorInfo[idx][dType] == 0) return SendClientMessage(playerid, error, "Invalid door id.");
DoorInfo[idx][dIInt] = GetPlayerInterior(playerid);
DoorInfo[idx][dIVW] = GetPlayerVirtualWorld(playerid);
GetPlayerFacingAngle(playerid, DoorInfo[idx][dIA]);
GetPlayerPos(playerid, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]);
format(string, sizeof(string), ""COE"%s (%d)", DoorInfo[idx][iText] , idx);
DoorInfo[idx][dTextID] = CreateDynamic3DTextLabel(string, -1, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]+0.3, 15);
format(string, sizeof(string), " You have set door ID %d's interior to your coordinates. (Int: %d | VW: %d)", idx, GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid, -1, string);
}
PHP код:
sscanf warning: Format specifier does not match parameter count.