small bug
#1

bugs

D:\servers\samp\new2\gamemodes\v3sf.pwn(1422) : error 055: start of function body without function header
D:\servers\samp\new2\gamemodes\v3sf.pwn(1423) : error 010: invalid function or declaration
D:\servers\samp\new2\gamemodes\v3sf.pwn(1425) : error 021: symbol already defined: "ac_SetPlayerPos"
D:\servers\samp\new2\gamemodes\v3sf.pwn(1425) : warning 215: expression has no effect
D:\servers\samp\new2\gamemodes\v3sf.pwn(1425) : warning 215: expression has no effect
D:\servers\samp\new2\gamemodes\v3sf.pwn(1425) : error 001: expected token: ";", but found ")"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


in

Код:
public pdstation();
{
	if(getCheckpointType(playerid) == 31 && getCheckpointType(playerid) == 31)
	{
	SetPlayerPos(playerid,2310.1270,-15.4618,29.7496);
 	SetPlayerFacingAngle(playerid,272.8260);
	SetCameraBehindPlayer(playerid);
	SendClientMessage(playerid, 0xA9A9A9AA, "|_San Firreo Police Station_|");
	}
	return 1;
}
any help?
Reply
#2

Tell me what the lines are.
Reply
#3

if(getCheckpointType(playerid) == 31 && getCheckpointType(playerid) == 31)

Why check the same thing twice?

public pdstation();

This does not use ;



And that is not the code giving the errors
Reply
#4

Quote:
Originally Posted by Desert
if(getCheckpointType(playerid) == 31 && getCheckpointType(playerid) == 31)

Why check the same thing twice?

public pdstation();

This does not use ;



And that is not the code giving the errors
i want make if player in check point setplayerpos in pd

the code give me errors

D:\servers\samp\new2\gamemodes\v3sf.pwn(1425) : error 055: start of function body without function header
D:\servers\samp\new2\gamemodes\v3sf.pwn(1426) : error 010: invalid function or declaration
D:\servers\samp\new2\gamemodes\v3sf.pwn(1427) : warning 215: expression has no effect
D:\servers\samp\new2\gamemodes\v3sf.pwn(1427) : warning 215: expression has no effect
D:\servers\samp\new2\gamemodes\v3sf.pwn(1427) : error 001: expected token: ";", but found ")"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#5

pawn Код:
public pdstation()
{
    if(getCheckpointType(playerid) == 31)
    {
      SetPlayerPos(playerid,2310.1270,-15.4618,29.7496);
      SetPlayerFacingAngle(playerid,272.8260);
      SetCameraBehindPlayer(playerid);
      SendClientMessage(playerid, 0xA9A9A9AA, "|_San Firreo Police Station_|");
    }
    return 1;
}
Try this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)