Anti Heal/Armor hacking compiler get warning , please help me fix
#5

Quote:
Originally Posted by jesdynguyen
Посмотреть сообщение
pawn Код:
enum VendMachinesEnum
{
    ModelID,
    Float:PosX,
    Float:PosY,
    Float:PosZ,
    Float:RotZ
}

new VendMachines[20][VendMachinesEnum] = {
};
I guess you copied this part as you don't really need it. That's why the compiler gives you a warning but compiles the script anyways and it won't create any errors since the compiler just informs you that you created a multi dimensional array which takes up unnecessary memory since you don't use it anywhere.

Quote:
Originally Posted by jesdynguyen
Посмотреть сообщение
pawn Код:
RemoveBuildingForPlayer(playerid, 955, 0, 0, 0, 25000); // Remove all sprunk machines
RemoveBuildingForPlayer(playerid, 956, 0, 0, 0, 25000); // Remove all vending machines
And this is why. You remove all the existing machines and don't create custom ones anywhere (which the enum and array might be used for as well).

So the solution would be to just remove the lines with the enum and the allocation of memory for the array.
That is if you do not intent to use them in any way of course.

I hope this helps.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)