How to check them all? -
dan40o - 28.09.2015
invalid subscript (not an array or too many subscripts): "IsPlayerInRangeOfPoint"
Код:
if((IsPlayerInRangeOfPoint(playerid, 4.0, 2202.0747, 2476.3201, 10.4334) || (IsPlayerInRangeOfPoint(playerid, 4.0, 2116.8564, 919.9106, 10.6673) || (IsPlayerInRangeOfPoint(playerid, 4.0, 612.6478, 1695.3385, 6.1108)
|| (IsPlayerInRangeOfPoint(playerid, 4.0, -1328.2699, 2677.3896, 49.5686) || (IsPlayerInRangeOfPoint(playerid, 4.0, -1476.5712, 1863.5432, 32.3497) || (IsPlayerInRangeOfPoint(playerid, 4.0, -1673.0472, 415.5537, 6.8084)
|| (IsPlayerInRangeOfPoint(playerid, 4.0, -2243.9604, -2560.2922, 31.4820) || (IsPlayerInRangeOfPoint(playerid, 4.0, -1606.9501, -2713.5408, 47.8734) || (IsPlayerInRangeOfPoint(playerid, 4.0, -93.5407, -1174.5577, 1.7055)
|| (IsPlayerInRangeOfPoint(playerid, 4.0, 1384.4052, 461.4474, 19.7409) || (IsPlayerInRangeOfPoint(playerid, 4.0, 1937.5554, -1775.5468, 12.8773) || (IsPlayerInRangeOfPoint(playerid, 4.0, 1006.0996, -939.7609, 41.6684)
|| (IsPlayerInRangeOfPoint(playerid, 4.0, 652.7177, -569.4036, 15.5601))
Re: How to check them all? -
Mister0 - 28.09.2015
You have a " ( " in front of " IsPlayerInRangeOfPoint" try to remove and recheck from acolade miss
Re: How to check them all? -
Crystallize - 28.09.2015
you just write like this
if(IsPlayerInRangeOfPoint(playerid, 20.0, 896.9587,2892.6489,37.5137)) return 1;
if(IsPlayerInRangeOfPoint(playerid, 20.0, 896.9587,2892.6489,37.5137)) return 1;
if(IsPlayerInRangeOfPoint(playerid, 20.0, 896.9587,2892.6489,37.5137)) return 1;
for example
Re: How to check them all? -
jlalt - 28.09.2015
try this one .-.
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2202.0747, 2476.3201, 10.4334) || IsPlayerInRangeOfPoint(playerid, 4.0, 2116.8564, 919.9106, 10.6673) || IsPlayerInRangeOfPoint(playerid, 4.0, 612.6478, 1695.3385, 6.1108));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1328.2699, 2677.3896, 49.5686) || IsPlayerInRangeOfPoint(playerid, 4.0, -1476.5712, 1863.5432, 32.3497) || IsPlayerInRangeOfPoint(playerid, 4.0, -1673.0472, 415.5537, 6.8084));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2243.9604, -2560.2922, 31.4820) || IsPlayerInRangeOfPoint(playerid, 4.0, -1606.9501, -2713.5408, 47.8734) || IsPlayerInRangeOfPoint(playerid, 4.0, -93.5407, -1174.5577, 1.7055));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1384.4052, 461.4474, 19.7409) || IsPlayerInRangeOfPoint(playerid, 4.0, 1937.5554, -1775.5468, 12.8773) || IsPlayerInRangeOfPoint(playerid, 4.0, 1006.0996, -939.7609, 41.6684));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 652.7177, -569.4036, 15.5601));
Re: How to check them all? -
dan40o - 28.09.2015
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1525) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1526) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1527) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (152
: error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1529) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1544) : error 029: invalid expression, assumed zero
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1556) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1557) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (155
: error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1559) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1560) : error 036: empty statement
C:\Users\Lenovo\Desktop\samp037\gamemodes\Mode.pwn (1574) : error 029: invalid expression, assumed zero
Re: How to check them all? -
jlalt - 28.09.2015
try this?
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2202.0747, 2476.3201, 10.4334));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2116.8564, 919.9106, 10.6673));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 612.6478, 1695.3385, 6.1108));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1328.2699, 2677.3896, 49.5686));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1476.5712, 1863.5432, 32.3497));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1673.0472, 415.5537, 6.8084));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2243.9604, -2560.2922, 31.4820));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1606.9501, -2713.5408, 47.8734));
if(IsPlayerInRangeOfPoint(playerid, 4.0, -93.5407, -1174.5577, 1.7055));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1384.4052, 461.4474, 19.7409));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1937.5554, -1775.5468, 12.8773));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1006.0996, -939.7609, 41.6684));
if(IsPlayerInRangeOfPoint(playerid, 4.0, 652.7177, -569.4036, 15.5601));
Re: How to check them all? -
dan40o - 28.09.2015
Problem Solved
i missed some brackets two closes ")" and at the end closes three ")"
Right code
Код:
if((IsPlayerInRangeOfPoint(playerid, 4.0, 2202.0747, 2476.3201, 10.4334)) || (IsPlayerInRangeOfPoint(playerid, 4.0, 2116.8564, 919.9106, 10.6673)) || (IsPlayerInRangeOfPoint(playerid, 4.0, 612.6478, 1695.3385, 6.1108))
|| (IsPlayerInRangeOfPoint(playerid, 4.0, -1328.2699, 2677.3896, 49.5686)) || (IsPlayerInRangeOfPoint(playerid, 4.0, -1476.5712, 1863.5432, 32.3497)) || (IsPlayerInRangeOfPoint(playerid, 4.0, -1673.0472, 415.5537, 6.8084))
|| (IsPlayerInRangeOfPoint(playerid, 4.0, -2243.9604, -2560.2922, 31.4820)) || (IsPlayerInRangeOfPoint(playerid, 4.0, -1606.9501, -2713.5408, 47.8734)) || (IsPlayerInRangeOfPoint(playerid, 4.0, -93.5407, -1174.5577, 1.7055))
|| (IsPlayerInRangeOfPoint(playerid, 4.0, 1384.4052, 461.4474, 19.7409)) || (IsPlayerInRangeOfPoint(playerid, 4.0, 1937.5554, -1775.5468, 12.8773) )|| (IsPlayerInRangeOfPoint(playerid, 4.0, 1006.0996, -939.7609, 41.6684))
|| (IsPlayerInRangeOfPoint(playerid, 4.0, 652.7177, -569.4036, 15.5601)))