Jump to content

error

Pending 1.1.2

duvvskaja2
xShadowBroker92x

Posted

Line 1331:

            switch (arg.Args[0])
            {
                case "wz":
                    float _value = float.Parse(arg.Args[3]);
                    damoData.pos[int.Parse(arg.Args[1])] += _value;
                    damoData.pos[int.Parse(arg.Args[2])] += _value;
                    break;
                case "zy":
                    _value = float.Parse(arg.Args[3]);
                    damoData.pos[int.Parse(arg.Args[1])] -= _value;
                    damoData.pos[int.Parse(arg.Args[2])] += _value;
                    break;
                case "dan":
                    _value = float.Parse(arg.Args[2]);
                    int key = int.Parse(arg.Args[1]);
                    damoData.pos[key] += _value;

                    switch (key)
                    {
                        case 7:
                            if (damoData.pos[key] > 2)
                            {
                                damoData.pos[key] = 0;
                            }
                            Get_textAnchor();
                            break;
                        case 4:
                            if (damoData.pos[key] < 1)
                            {
                                damoData.pos[key] = 1;
                            }
                            break;
                        case 5:
                            if (damoData.pos[key] < 0.01)
                            {
                                damoData.pos[key] = 0.01f;
                            }
                            break;
                        case 6:
                            if (damoData.pos[key] < 1)
                            {
                                damoData.pos[key] = 1;
                            }
                            break;
                    }
                    break;
                case "res":
                    damoData.pos = new float[] { 0.6f, 0.97f, 1f, 1f, 6f, 0.03f, 18, 0 };
                    Get_textAnchor();
                    break;

            }
            UpUIMessageText(player);

 

change to:

float _value;

if (arg.Args[0] == "wz")
{
    _value = float.Parse(arg.Args[3]);
    damoData.pos[int.Parse(arg.Args[1])] += _value;
    damoData.pos[int.Parse(arg.Args[2])] += _value;
}
else if (arg.Args[0] == "zy")
{
    _value = float.Parse(arg.Args[3]);
    damoData.pos[int.Parse(arg.Args[1])] -= _value;
    damoData.pos[int.Parse(arg.Args[2])] += _value;
}
else if (arg.Args[0] == "dan")
{
    _value = float.Parse(arg.Args[2]);
    int key = int.Parse(arg.Args[1]);
    damoData.pos[key] += _value;

    switch (key)
    {
        case 7:
            if (damoData.pos[key] > 2)
                damoData.pos[key] = 0;
            Get_textAnchor();
            break;

        case 4:
            if (damoData.pos[key] < 1)
                damoData.pos[key] = 1;
            break;

        case 5:
            if (damoData.pos[key] < 0.01f)
                damoData.pos[key] = 0.01f;
            break;

        case 6:
            if (damoData.pos[key] < 1)
                damoData.pos[key] = 1;
            break;
    }
}
else if (arg.Args[0] == "res")
{
    damoData.pos = new float[] { 0.6f, 0.97f, 1f, 1f, 6f, 0.03f, 18, 0 };
    Get_textAnchor();
}

UpUIMessageText(player);

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.6m
Total downloads
Customers
11.3k
Customers served
Files Sold
162.1k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.