Dynamic textlabel
#3

Don't listen to @TheToretto.

First of all - what you trying to achieve is not going to be dynamic at all. But if I would go for the solution like the user above did, then there's a simpler solution without using enumerator.

pawn Код:
static const Float:FishingPoints[][3] =
{
    {403.8615, -2088.7983, 7.8359},
    {398.6964, -2088.7981, 7.8359},
    {396.1438, -2088.7981, 7.8359},
    {391.0257, -2088.7983, 7.8359},
    {383.4240, -2088.7983, 7.8359},
    {374.9918, -2088.7983, 7.8359},
    {369.8525, -2088.7981, 7.8359},
    {367.2137, -2088.7954, 7.8359},
    {362.1895, -2088.7983, 7.8359},
    {354.3215, -2088.6377, 7.8359}
};

public OnGameModeInit()
{
    for(new i = 0; i != sizeof(FishingPoints); i++)
    {
        Create3DTextLabel("Fishing Point", 0x008080FF, FishingPoints[i][0], FishingPoints[i][1], FishingPoints[i][2], 40.0, 0, 0);
    }
    return 1;
}
Reply


Messages In This Thread
Dynamic textlabel - by KinderClans - 30.10.2018, 09:57
Re: Dynamic textlabel - by TheToretto - 30.10.2018, 10:10
Re: Dynamic textlabel - by Riddick94 - 30.10.2018, 10:22
Re: Dynamic textlabel - by iAmir - 30.10.2018, 10:34
Re: Dynamic textlabel - by TheToretto - 30.10.2018, 10:41
Re: Dynamic textlabel - by Kane - 30.10.2018, 10:41
Re: Dynamic textlabel - by KinderClans - 30.10.2018, 17:56
Re: Dynamic textlabel - by GTLS - 31.10.2018, 06:28
Re: Dynamic textlabel - by TheToretto - 31.10.2018, 07:44

Forum Jump:


Users browsing this thread: 1 Guest(s)