20.04.2013, 12:30
Hey! I want to add to my script pickups, which will be at coordinates where you can enter at the building. When you enter pickup, text draw will show for player. I tried to add something, but I have an error. This is my code:
Here is my error:
array must be indexed (variable "EnterPickup")
What do I have to put in my code so I can compare pickupid and EnterPickup?
Код:
new EnterPickup[20];
-------------
OnGameModeInit
EnterPickup[0] = CreatePickup(...)
EnterPickup[1] = CreatePickup(...)
--------------
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == EnterPickup) // here is error
{
Show text draw which I will create later
}
return 1;
}
array must be indexed (variable "EnterPickup")
What do I have to put in my code so I can compare pickupid and EnterPickup?


thank you so much for explaining that to me