SA-MP Forums Archive
[Help] 3D Textdraw command. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] 3D Textdraw command. (/showthread.php?tid=164671)



[Help] 3D Textdraw command. - Ace_Menace - 01.08.2010

The command is supposed to put the parameter into the 3D Textdraw

this is what I have:
pawn Код:
if(strcmp(cmd, "/describe", true) == 0)
    {
        new tmpz[256];
        new stringz[256];
        new idxz;
        tmpz = strtok(cmdtext, idxz);
        if(!strlen(tmpz))
        {
            SendClientMessage(playerid, cerror, "USAGE: /describe [description]");
            return 1;
        }
        else if(ifdescribed[playerid] == 1)
        {
            format(stringz, sizeof(stringz), "* %s ", tmpz);
            Update3DTextLabelText(DDescript[playerid], 0x0096FFFF, stringz);
            return 1;
        }
        else if(ifdescribed[playerid] == 0)
        {
            ifdescribed[playerid] = 1;
            format(stringz, sizeof(stringz), "* %s ", tmpz);
            DDescript[playerid] = Create3DTextLabel(stringz,0x0096FFFF,0.0,0.0,0.0,30.0,0,0);
            Attach3DTextLabelToPlayer(DDescript[playerid], playerid, 0.0, 0.0, 0.3);
            return 1;
        }
    }
The problem is it shows * /describe over there heads instead of the command text.


Re: [Help] 3D Textdraw command. - Dudits - 01.08.2010

I suggest using SSCANF, much easier and neater.