Array problem
#1

Hello.

I have a code like that in a GameModeInit FilterScript:

Code:
 new pickups [MAX_PICKUPS];
new pickup;

pickup AddStaticPickup = (1274, 2, -1346.1757,492.4712,11.2027, -1);
pickups[pickup] = "store";
pickup AddStaticPickup = (1274, 2, -1351.3839,500.9245,18.2344, -1);
pickups[pickup] = "store";
(and other pickups that follow).

I have the error: error 006: Must Be Assigned to year array

Each line pickups[pickup] = "store";

How to solve this problem?

Thank you!
Reply
#2

I don't know what do you want to do with this. That might help us but I know that you can use "(variable) (function) = (function params)". It has to be "(variable) = (Function)(function params)"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)