Help me at one line.
#1

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

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

Still errors.

Why lol??
Reply
#4

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

Код:
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.
Reply
#6

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

Help me its very importent.

Ty
Reply
#7

Код:
{
  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;
}
Reply
#8

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

Show the lines in code !
Reply
#10

How to do it?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)