[Ajuda] Interior ? Help Pliz - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Interior ? Help Pliz (
/showthread.php?tid=457476)
Interior ? Help Pliz -
Alisson Silva Alves - 11.08.2013
pawn Код:
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(13) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(152) : error 029: invalid expression, assumed zero
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(152) : warning 215: expression has no effect
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(152) : error 001: expected token: ";", but found "if"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(152) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(152) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
else if (PlayerToPoint(3.0, playerid,1481.0393,-1772.3138,18.7958))
{
SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
Linha:
pawn Код:
else if (PlayerToPoint(3.0, playerid,1481.0393,-1772.3138,18.7958))
pq esta dando esse erro ?
Re: Interior ? Help Pliz -
PT - 11.08.2013
tenta
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1481.0393, -1772.3138, 18.7958))
{
SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
}
Re: Interior ? Help Pliz -
Alisson Silva Alves - 11.08.2013
pawn Код:
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(13) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(151) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : error 017: undefined symbol "PlayerInfo"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : warning 215: expression has no effect
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : error 001: expected token: ";", but found "]"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : error 029: invalid expression, assumed zero
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Re: Interior ? Help Pliz -
PT - 11.08.2013
eu tinha esqueзido 1 { em cima
ja editei, tenta dnv
mas me explica 1 coisa para que vc quer isso?
Re: Interior ? Help Pliz -
Standby - 11.08.2013
pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}