SA-MP Forums Archive
3D Text Problem - 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: 3D Text Problem (/showthread.php?tid=179132)



3D Text Problem - Hash [NL-RP] - 25.09.2010

Here is my Code

Код:
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
            CarLabel[i] = Create3DTextLabel("%d",0x00AE00FF,CarInfo[i][cPlate],0,0,20.0,0,1);
            Attach3DTextLabelToVehicle( CarLabel[i],i, 0.0, 0.0, 2.0);
    }
It attaches fine but the problem is when i go in game all i see is '%d' on top of the car, how can i fix this :@


Re: 3D Text Problem - PotH3Ad - 25.09.2010

pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
    {
        new str[30];
        format(str, sizeof(str), "%d", CarInfo[i][cPlate]);
        CarLabel[i] = Create3DTextLabel(str, 0x00AE00FF, 0,0, 0, 20.0, 0, 1);
        Attach3DTextLabelToVehicle( CarLabel[i],i, 0.0, 0.0, 2.0);
    }



Re: 3D Text Problem - Hash [NL-RP] - 25.09.2010

lol thanks i forgot the string lmao