small bug - 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: small bug (
/showthread.php?tid=146189)
small bug -
oOhossamOo - 06.05.2010
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?
Re: small bug -
ruarai - 06.05.2010
Tell me what the lines are.
Re: small bug -
Desert - 06.05.2010
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
Re: small bug -
oOhossamOo - 06.05.2010
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.
Re: small bug -
Zimon95 - 06.05.2010
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.