10.06.2012, 11:43
Hi guys.I'm working on a farm system for a role play gm.
First,i created pickup for farm and i wrote my codes to onplayerpickuppickup. But i used CreatePickup,there is a bug on this function,whatever you make pickup id(unpickupable,pickupable etc.) sometimes player can pick up the pickup.
I don't want problems,because of this i wrote that new code :
But there is some errors:
First,i created pickup for farm and i wrote my codes to onplayerpickuppickup. But i used CreatePickup,there is a bug on this function,whatever you make pickup id(unpickupable,pickupable etc.) sometimes player can pick up the pickup.
I don't want problems,because of this i wrote that new code :
pawn Код:
for(new f;f<MAX_FARM;f++)
{
if(IsPlayerInRangeOfPoint(playerid,0.5,Farms[f][farmPos[0]],Farms[f][farmPos[1]],Farms[f][farmPos[2]]))
{
Код:
error 028: invalid subscript (not an array or too many subscripts): "farmPos" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line