23.05.2012, 00:38
So far I have this:
I have the pickups declared and they display, they are also entered into the array shown below:
The error is on the "switch" line, the error is: "bensamp.pwn(944) : error 029: invalid expression, assumed zero".
Can anyone please help me? Or see as to where I have gone wrong.
pawn Код:
command(enter, playerid, params[])
{
switch(arrowpickup[])
{
//
}
return 1;
}
pawn Код:
// Arrow Array
new arrowpickup[100];
stock showarrowpickups()
{
arrowpickup[1] = CreatePickup(1318, 1, -2440.8452, 524.1761, 29.9064, -1);
arrowpickup[2] = CreatePickup(1318, 1, -2453.5320, 504.0138, 30.0802, -1);
print("Arrow Pickups loaded");
}
Can anyone please help me? Or see as to where I have gone wrong.