Repair Error
#4

Have you defined that function? Or is this:
Код:
ARepairPickups(Float:x, Float:y, Float:z)
{
    for (new i; i < sizeof(ARepairPickups); i++)
    {
        if (ARepairPickups[i][PickupID] == 0)
        {
            ARepairPickups[i][PickupID] = CreatePickup(27, 1, x, y, z, 0);
            ARepairPickups[i][pux] = x;
            ARepairPickups[i][puy] = y;
            ARepairPickups[i][puz] = z;
            Create3DTextLabel(TXT_PickupRepair, 0xFFFFFFFF, x, y, z + 0.8, 30.0, 0);
            CreateDynamicMapIcon(x, y, z, 56, 0, 0, 0, -1, 300.0);
            break;
        }
    }
}
Supposed to be it? Because in the code you have shown, you haven't defined AddARepairPickups as such, but instead, you defined ARepairPickups. Plus, the latter is a variable, and you are using it as a function name.

Replace this:
Код:
ARepairPickups(Float:x, Float:y, Float:z)
{
    for (new i; i < sizeof(ARepairPickups); i++)
    {
        if (ARepairPickups[i][PickupID] == 0)
        {
            ARepairPickups[i][PickupID] = CreatePickup(27, 1, x, y, z, 0);
            ARepairPickups[i][pux] = x;
            ARepairPickups[i][puy] = y;
            ARepairPickups[i][puz] = z;
            Create3DTextLabel(TXT_PickupRepair, 0xFFFFFFFF, x, y, z + 0.8, 30.0, 0);
            CreateDynamicMapIcon(x, y, z, 56, 0, 0, 0, -1, 300.0);
            break;
        }
    }
}
With this:
Код:
AddARepairPickups(Float:x, Float:y, Float:z)
{
    for (new i; i < sizeof(ARepairPickups); i++)
    {
        if (ARepairPickups[i][PickupID] == 0)
        {
            ARepairPickups[i][PickupID] = CreatePickup(27, 1, x, y, z, 0);
            ARepairPickups[i][pux] = x;
            ARepairPickups[i][puy] = y;
            ARepairPickups[i][puz] = z;
            Create3DTextLabel(TXT_PickupRepair, 0xFFFFFFFF, x, y, z + 0.8, 30.0, 0);
            CreateDynamicMapIcon(x, y, z, 56, 0, 0, 0, -1, 300.0);
            break;
        }
    }
}
Reply


Messages In This Thread
Repair Error - by DerickClark - 20.01.2014, 22:19
Re: Repair Error - by Rifa4life - 20.01.2014, 22:59
Re: Repair Error - by DerickClark - 20.01.2014, 23:08
Re: Repair Error - by Rifa4life - 20.01.2014, 23:38
Re: Repair Error - by DerickClark - 20.01.2014, 23:41
Re: Repair Error - by Rifa4life - 20.01.2014, 23:52
Re: Repair Error - by DerickClark - 20.01.2014, 23:53
Re: Repair Error - by Rifa4life - 21.01.2014, 00:05
Re: Repair Error - by DerickClark - 21.01.2014, 00:06
Re: Repair Error - by Rifa4life - 21.01.2014, 00:13

Forum Jump:


Users browsing this thread: 4 Guest(s)