OnObjectMoved(objectid) PROBLEM
#1

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! ^.^
Reply
#2

What does Ocupated[playerid] do may I ask?
Reply
#3

Код:
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 ;)");
		  }
Reply
#4

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

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

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
Reply
#6

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

LOL thx x]
Reply
#8

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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)