[HELP]About my farm system
#1

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 :
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]]))
        {
But there is some errors:
Код:
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
Reply
#2

Ofcourse it gives you errors because nothing comes next after the "if".
Reply
#3

What do you mean? IsPlayerInRangeOfPoint?
Reply
#4

Quote:
Originally Posted by Dodo9655
Посмотреть сообщение
Ofcourse it gives you errors because nothing comes next after the "if".
wut?
OT: can you be specific please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)