Error with IsPlayerToPoint -
ServerScripter - 07.10.2011
Hi , when i complie , i get this error :
Код:
C:\DOCUME~1\PC\Bureau\CMVA\GAMEMO~1\CMVA.pwn(36679) : error 075: input line too long (after substitutions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line 36678 to 36684 :
PHP код:
if(IsPlayerConnected(playerid))
{
if(!PlayerToPoint(2, playerid, -32.276363,-57.995586,1003.139953) && !PlayerToPoint(2, playerid, 374.718902,167.128982,1007.987304) && !PlayerToPoint(2, playerid, 1813.2092,-1905.2410,13.5690) && !PlayerToPoint(2, playerid, 1749.1041,-1862.3077,13.5765) && !PlayerToPoint(2, playerid, 1537.6602,-1606.6102,13.5469) && !PlayerToPoint(2, playerid, 2241.0549,-1724.0847,13.5469) && !PlayerToPoint(2, playerid, 1366.1490,-1307.2722,13.5469) && !PlayerToPoint(2, playerid, 1181.9039,-1315.3215,13.5724) && !PlayerToPoint(2, playerid, 794.9467,-1601.8685,13.7999))
{
SendClientMessage(playerid, COLOR_GREY, "Vous n'кtes pas a cotй d'un distributeur d'argent pour utiliser cette commande!");
return 1;
}
The Script Was Working perfect, but whene i ADD 4 New IsPlayerToPoint , i get the Error, I Hope u Help me
Re: Error with IsPlayerToPoint -
CyNiC - 07.10.2011
Change for:
pawn Код:
if(IsPlayerConnected(playerid))
{
if(
!PlayerToPoint(2, playerid, -32.276363,-57.995586,1003.139953) &&
!PlayerToPoint(2, playerid, 374.718902,167.128982,1007.987304) &&
!PlayerToPoint(2, playerid, 1813.2092,-1905.2410,13.5690) &&
!PlayerToPoint(2, playerid, 1749.1041,-1862.3077,13.5765) &&
!PlayerToPoint(2, playerid, 1537.6602,-1606.6102,13.5469) &&
!PlayerToPoint(2, playerid, 2241.0549,-1724.0847,13.5469) &&
!PlayerToPoint(2, playerid, 1366.1490,-1307.2722,13.5469) &&
!PlayerToPoint(2, playerid, 1181.9039,-1315.3215,13.5724) &&
!PlayerToPoint(2, playerid, 794.9467,-1601.8685,13.7999))
{
SendClientMessage(playerid, COLOR_GREY, "Vous n'кtes pas a cotй d'un distributeur d'argent pour utiliser cette commande!");
return 1;
}
Re: Error with IsPlayerToPoint -
Jefff - 07.10.2011
pawn Код:
new Float:Positions[9][3] = {
{-32.2763,-57.9955,1003.1399},
{374.7189,167.1289,1007.9873},
{1813.2092,-1905.2410,13.5690},
{1749.1041,-1862.3077,13.5765},
{1537.6602,-1606.6102,13.5469},
{2241.0549,-1724.0847,13.5469},
{1366.1490,-1307.2722,13.5469},
{1181.9039,-1315.3215,13.5724},
{794.9467,-1601.8685,13.7999}
};
if(IsPlayerConnected(playerid))
{
for(new d; d < sizeof(Positions); d++)
{
if(!PlayerToPoint(2, playerid, Positions[d][0],Positions[d][1],Positions[d][2]))
{
SendClientMessage(playerid, COLOR_GREY, "Vous n'e^tes pas a cotй d'un distributeur d'argent pour utiliser cette commande!");
return 1;
}
}
}
Re: Error with IsPlayerToPoint -
AndreT - 07.10.2011
I'm just pointing out that there's also
IsPlayerInRangeOfPoint which is a native implementation and hence faster than any other implementation.
Re: Error with IsPlayerToPoint -
ServerScripter - 07.10.2011
Perfec Working Thanks a lot
+1Rep