Teleporting system
#1

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

PHP код:
    if(!strcmp(params"text"true4))
        {
            if(
sscanf(params"s[128]is[128]"paramsidxtext)) return SendClientMessage(playeriderror"Usage: /dedit text [doorid] [text]");
            if(
DoorInfo[idx][dType] == 0) return SendClientMessage(playeriderror"Invalid door id.");
            
format(DoorInfo[idx][dText], 128"%s"text);
            
format(stringsizeof(string), ""COE"%s (%d)"DoorInfo[idx][dText] , idx);
            
UpdateDynamic3DTextLabelText(DoorInfo[idx][dTextID], -1string);
               
format(DoorInfo[idx][iText], 128"%s"text);
            
format(stringsizeof(string), ""COE"%s (%d)"DoorInfo[idx][iText] , idx);
            
UpdateDynamic3DTextLabelText(DoorInfo[idx][dTextID], -1string);
            
format(stringsizeof(string), " You have set door ID %d's text to %s"idxtext);
            
SendClientMessage(playerid, -1string);
        }
        if(!
strcmp(params"interior"true8))
        {
            if(
sscanf(params"s[128]i"paramsidxtext)) return SendClientMessage(playeriderror"Usage: /dedit interior [doorid]");
            if(
DoorInfo[idx][dType] == 0) return SendClientMessage(playeriderror"Invalid door id.");
            
DoorInfo[idx][dIInt] = GetPlayerInterior(playerid);
            
DoorInfo[idx][dIVW] = GetPlayerVirtualWorld(playerid);
            
GetPlayerFacingAngle(playeridDoorInfo[idx][dIA]);
            
GetPlayerPos(playeridDoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]);
            
format(stringsizeof(string), ""COE"%s (%d)"DoorInfo[idx][iText] , idx);
            
DoorInfo[idx][dTextID] = CreateDynamic3DTextLabel(string, -1DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]+0.315);
            
format(stringsizeof(string), " You have set door ID %d's interior to your coordinates. (Int: %d | VW: %d)"idxGetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
            
SendClientMessage(playerid, -1string);
        } 
Also whenever i start the local host it shows a message like this
PHP код:
sscanf warningFormat specifier does not match parameter count
i dont know how to fix it can you help me, i will be active on forums and is awaiting any reply
Reply


Messages In This Thread
Teleporting system - by 1fret - 15.04.2017, 00:02
Re: Teleporting system - by DarkSkull - 15.04.2017, 00:05
Re: Teleporting system - by 1fret - 15.04.2017, 00:28
Re: Teleporting system - by DarkSkull - 15.04.2017, 00:38
Re: Teleporting system - by 1fret - 15.04.2017, 00:39
Re: Teleporting system - by DarkSkull - 15.04.2017, 00:50
Re: Teleporting system - by 1fret - 15.04.2017, 01:02
Re: Teleporting system - by DarkSkull - 15.04.2017, 01:22
Re: Teleporting system - by 1fret - 15.04.2017, 01:31

Forum Jump:


Users browsing this thread: 1 Guest(s)