How to check them all?
#1

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))
Reply
#2

You have a " ( " in front of " IsPlayerInRangeOfPoint" try to remove and recheck from acolade miss
Reply
#3

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
Reply
#4

try this one .-.
PHP код:
if(IsPlayerInRangeOfPoint(playerid4.02202.07472476.320110.4334) || IsPlayerInRangeOfPoint(playerid4.02116.8564919.910610.6673) || IsPlayerInRangeOfPoint(playerid4.0612.64781695.33856.1108));
if(
IsPlayerInRangeOfPoint(playerid4.0, -1328.26992677.389649.5686) || IsPlayerInRangeOfPoint(playerid4.0, -1476.57121863.543232.3497) || IsPlayerInRangeOfPoint(playerid4.0, -1673.0472415.55376.8084));
if(
IsPlayerInRangeOfPoint(playerid4.0, -2243.9604, -2560.292231.4820) || IsPlayerInRangeOfPoint(playerid4.0, -1606.9501, -2713.540847.8734) || IsPlayerInRangeOfPoint(playerid4.0, -93.5407, -1174.55771.7055));
if(
IsPlayerInRangeOfPoint(playerid4.01384.4052461.447419.7409) || IsPlayerInRangeOfPoint(playerid4.01937.5554, -1775.546812.8773) || IsPlayerInRangeOfPoint(playerid4.01006.0996, -939.760941.6684));
if(
IsPlayerInRangeOfPoint(playerid4.0652.7177, -569.403615.5601)); 
Reply
#5

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
Reply
#6

try this?
PHP код:
if(IsPlayerInRangeOfPoint(playerid4.02202.07472476.320110.4334));
if(
IsPlayerInRangeOfPoint(playerid4.02116.8564919.910610.6673));
if(
IsPlayerInRangeOfPoint(playerid4.0612.64781695.33856.1108));
if(
IsPlayerInRangeOfPoint(playerid4.0, -1328.26992677.389649.5686));
if(
IsPlayerInRangeOfPoint(playerid4.0, -1476.57121863.543232.3497));
if(
IsPlayerInRangeOfPoint(playerid4.0, -1673.0472415.55376.8084));
if(
IsPlayerInRangeOfPoint(playerid4.0, -2243.9604, -2560.292231.4820));
if(
IsPlayerInRangeOfPoint(playerid4.0, -1606.9501, -2713.540847.8734));
if(
IsPlayerInRangeOfPoint(playerid4.0, -93.5407, -1174.55771.7055));
if(
IsPlayerInRangeOfPoint(playerid4.01384.4052461.447419.7409));
if(
IsPlayerInRangeOfPoint(playerid4.01937.5554, -1775.546812.8773));
if(
IsPlayerInRangeOfPoint(playerid4.01006.0996, -939.760941.6684));
if(
IsPlayerInRangeOfPoint(playerid4.0652.7177, -569.403615.5601)); 
Reply
#7

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)))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)