Repair Error
#7

Quote:
Originally Posted by Rifa4life
Посмотреть сообщение
Код:
ARepairPickups
Is used in your code as a variable, and hence should be defined at the start of the gamemode.

enum aInfo
{
PickupID,
Float: pux,
Float: puy,
Float: puz,
Text3D: TextLabel
};
new ARepairPickups[MAX_REPAIR_PICKUPS][aInfo];

You don't have to use the last variable (TextLabel), but if you do, then exchange this:
Код:
Create3DTextLabel(TXT_PickupRepair, 0xFFFFFFFF, x, y, z + 0.8, 30.0, 0);
For this:
Код:
ARepairPickups[i][TextLabel] = Create3DTextLabel(TXT_PickupRepair, 0xFFFFFFFF, x, y, z + 0.8, 30.0, 0);
It will allow you to edit or delete the 3D label later on, if you need to. Also, you obviously need to #define MAX_REPAIR_PICKUPS at the start of your script.

Problem solved?
icon now showing
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: 3 Guest(s)