SA-MP Forums Archive
Help me at one line. - 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: Help me at one line. (/showthread.php?tid=90071)



Help me at one line. - Taz86 - 06.08.2009

pawn Код:
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  if(IsPlayerConnected(i))
  {
    if(PlayerToPoint(12.0,i, -2056.3628,-108.0234,35.311); // Cooded near gate
    {
      SendClientMessage(i,COLOR_GREY,"Go Kart");
      MoveObject(Gokart,971, -2057.269043, -107.682106,3);//Open Coode
      return 1;
    }
    else
    { that was marked wat is it?
      MoveObject(Gokart,-2057.287109, -107.689758, 35.690155,3);//Close Coode
      return 1;

    if(PlayerToPoint((12.0,i,2058.3525,-107.4935,35.3203)) // Cooded near gate
    {
      SendClientMessage(i,COLOR_GREY,"Go Kart");
      MoveObject(Gokart,971, -2057.269043, -107.682106,3);//Open Coode
      return 1;
    }
    else
    {
      MoveObject(Gokart,-2057.287109, -107.689758, 35.690155,3);//Close Coode
      return 1;
        }
    return 1;
}
Main 2682 line:
pawn Код:
if(PlayerToPoint(12.0,i, -2056.3628,-108.0234,35.311); // Cooded near gate

Why it gives me this??
Код:
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : error 012: invalid function call, not a valid address
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : error 001: expected token: ";", but found ")"
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : error 029: invalid expression, assumed zero
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Please help me



Re: Help me at one line. - woot - 06.08.2009

pawn Код:
if(PlayerToPoint(12.0,i, -2056.3628,-108.0234,35.311))



Re: Help me at one line. - Taz86 - 06.08.2009

Still errors.

Why lol??


Re: Help me at one line. - Correlli - 06.08.2009

Quote:
Originally Posted by Taz86
Still errors.
If you're getting new errors then post them.


Re: Help me at one line. - Taz86 - 06.08.2009

Код:
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : error 012: invalid function call, not a valid address
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : error 001: expected token: ";", but found ")"
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : error 029: invalid expression, assumed zero
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2682) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Help me at one line. - Taz86 - 06.08.2009

Its other erros, But why it happeing, i mean all is good, why so many errors?

Help me its very importent.

Ty


Re: Help me at one line. - Jefff - 06.08.2009

Код:
{
  for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
  {
    if(PlayerToPoint(12.0,i, -2056.3628,-108.0234,35.311)) // Cooded near gate
    {
      SendClientMessage(i,COLOR_GREY,"Go Kart");
      MoveObject(Gokart,971, -2057.269043, -107.682106,3);//Open Coode
      return 1;
    }
    else
    { that was marked wat is it?
      MoveObject(Gokart,-2057.287109, -107.689758, 35.690155,3);//Close Coode
      return 1;
		}
    if(PlayerToPoint(12.0,i,2058.3525,-107.4935,35.3203)) // Cooded near gate
    {
      SendClientMessage(i,COLOR_GREY,"Go Kart");
      MoveObject(Gokart,971, -2057.269043, -107.682106,3);//Open Coode
      return 1;
    }
    else
    {
      MoveObject(Gokart,-2057.287109, -107.689758, 35.690155,3);//Close Coode
      return 1;
		}
	}
	return 1;
}



Re: Help me at one line. - Taz86 - 06.08.2009

Thanks mate but I get these:
Код:
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : error 012: invalid function call, not a valid address
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : warning 215: expression has no effect
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : error 001: expected token: ";", but found ")"
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : error 029: invalid expression, assumed zero
D:\My Documents\дчбцйн щмй щдъчбме\Creative(2).pwn(2681) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
line: 2681:
Код:
 if(PlayerToPoint(12.0,i, -2056.3628,-108.0234,35.311)) // Cooded near gate



Re: Help me at one line. - Jefff - 06.08.2009

Show the lines in code !


Re: Help me at one line. - Taz86 - 06.08.2009

How to do it?