SA-MP Forums Archive
AVS problem, - 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)
+--- Thread: AVS problem, (/showthread.php?tid=301705)



AVS problem, - remyguys - 05.12.2011

i get these warnings when compiling AVS (mademen)

575) : warning 202: number of arguments does not match definition
1310) : warning 202: number of arguments does not match definition

thx in advance

These are the lines:
PHP код:
            dist IsPlayerInRangeOfPoint(playeridxyz);
            
dist IsPlayerInRangeOfPoint(playeridxyz); 



Re: AVS problem, - Pinguinn - 05.12.2011

You forgot to add the range between "playerid" and "x"
pawn Код:
IsPlayerInRangeOfPoint(playerid, range, x, y, z);



Re: AVS problem, - nuriel8833 - 05.12.2011

pawn Код:
dist = IsPlayerInRangeOfPoint(playerid,range,x, y, z);
            dist = IsPlayerInRangeOfPoint(playerid,range,x, y, z);
range is also radios
for ex. - Is player in a range of 50 from 0,0,0.If he is,it will return 1,if not,it will return 0