Gates, moving
#1

Okay, I seem to have a problem with my gate..

This is the position when open: CreateObject(305.49206542969,-1552.9946289063,32.823028564453,322.28503417969); //Gate Open
This is the position when closed: CreateObject(310.37841796875,-1555.9321289063,32.823028564453,322.28500366211); //Gate Close


This is the part of my code im having trouble with,
Quote:

else if (PlayerToPoint(15, playerid,310.37841796875,-1555.9321289063,32.823028564453))
{
MoveObject(fbigate,305.49206542969,-1552.9946289063,32.823028564453);
SetTimer("GateClose3", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);

I know, Im a n00b just stick with me

and this is my warning i keep getting,
Quote:

C:\Users\TonyTone\Desktop\gtarp.pwn(17346) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 9516 bytes
Code size: 1633168 bytes
Data size: 10359928 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4466 cells (17864 bytes)
Total requirements:12018996 bytes

1 Warning.

Cab someone please fix this Thanks!
Reply
#2

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE,COLOR_PURPLE);
it's not hard
Reply
#3

Quote:
Originally Posted by whitedragon
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE,COLOR_PURPLE);
it's not hard
Ok, Can you make it clear? All you said is
Quote:

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE,COLOR_PURPLE);
it's not hard
I dont understand what you want me to do?
Reply
#4

He means copy and paste what he posted,try:

Код:
else if (PlayerToPoint(15, playerid,310.37841796875,-1555.9321289063,32.823028564453))
   {
      MoveObject(fbigate,305.49206542969,-1552.9946289063,32.823028564453);
      SetTimer("GateClose3", 7000, 0);
      SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds.");
      GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)