[HELP]About my farm system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]About my farm system (
/showthread.php?tid=349855)
[HELP]About my farm system -
Nightmare[TR] - 10.06.2012
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
Re: [HELP]About my farm system -
Dodo9655 - 10.06.2012
Ofcourse it gives you errors because nothing comes next after the "if".
Re: [HELP]About my farm system -
Nightmare[TR] - 10.06.2012
What do you mean? IsPlayerInRangeOfPoint?
Re: [HELP]About my farm system -
Littlehelper - 10.06.2012
Quote:
Originally Posted by Dodo9655
Ofcourse it gives you errors because nothing comes next after the "if".
|
wut?
OT: can you be specific please?