SA-MP Forums Archive
OnObjectMoved(objectid) PROBLEM - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnObjectMoved(objectid) PROBLEM (/showthread.php?tid=131941)



OnObjectMoved(objectid) PROBLEM - not - 05.03.2010

Hi all!! Well my problem is:

How Can I Do that:

Код:
public OnObjectMoved(objectid)
{
  Ocupated[playerid] == 1;
  return 1;
}
error 017: undefined symbol "playerid"


PSD: Its a Lift script! ^.^


Re: OnObjectMoved(objectid) PROBLEM - [HiC]TheKiller - 05.03.2010

What does Ocupated[playerid] do may I ask?


Re: OnObjectMoved(objectid) PROBLEM - not - 05.03.2010

Код:
if (IsPlayerInRangeOfPoint(playerid,1.0,945.470459, 2443.193359, 42.893814)){
			MoveObject(lift1,948.794312, 2439.689941, 42.391544 , 3);
			SendClientMessage(playerid,0x5C6087FF,"Lift 1 -- Llamando Ascensor...");
		 	Abajo1 = SetTimer("Checkdown1",13000,true);
		}  else if(Ocupado[playerid] = 1){
		  SendClientMessage(playerid,0x5C6087FF,"Lift 1 -- Ocupado ;)");
		  }



Re: OnObjectMoved(objectid) PROBLEM - Torran - 05.03.2010

If its a lift, Then there is no need for [playerid] remove that,

And also, OnObjectMoved is when the object has stopped moving.


Re: OnObjectMoved(objectid) PROBLEM - not - 05.03.2010

mmm but how i define Ocupated? i mean how to remove [playerid]?

now my define is:

Код:
new Ocupated[MAX_PLAYERS]
sry i'm a little noob in that :P


Re: OnObjectMoved(objectid) PROBLEM - [HiC]TheKiller - 05.03.2010

I would recommend http://forum.sa-mp.com/index.php?topic=2750.0 for you.


Re: OnObjectMoved(objectid) PROBLEM - not - 05.03.2010

LOL thx x]


Re: OnObjectMoved(objectid) PROBLEM - Torran - 05.03.2010

Quote:
Originally Posted by [HiC
TheKiller ]
I would recommend http://forum.sa-mp.com/index.php?topic=2750.0 for you.
Yes that is highly recommended

Quote:
Originally Posted by not
mmm but how i define Ocupated? i mean how to remove [playerid]?

now my define is:

Код:
new Ocupated[MAX_PLAYERS]
sry i'm a little noob in that :P
It would just be
pawn Код:
new Ocupated;