Talán így: #include <YSF>public OnPlayerUpdate(playerid){ if(IsPlayerInRangeOfPoint(playerid,hatótáv,X,Y,Z)) SetPlayerGravity(playerid,0.002); else SetPlayerGravity(0.008); return 1;} Nem teszteltem,de az elõzõben nem lehetett az a hiba hogy \' \'-jelek közé teted a koordinátákat?
#include <YSF>public OnPlayerUpdate(playerid){ if(IsPlayerInRangeOfPoint(playerid,hatótáv,X,Y,Z)) SetPlayerGravity(playerid,0.002); else SetPlayerGravity(0.008); return 1;}
#include <a_samp>#include <YSF>public OnPlayerUpdate(playerid){ if(IsPlayerInRangeOfPoint(playerid,500.0,2653.6182,-2003.9534,13.3828)) SetPlayerGravity(playerid,0.002); else SetPlayerGravity(playerid,0.008); return 1;}
else SetPlayerGravity(playerid,0.008);
playerid,
#include <a_samp>#include <YSF>public OnFilterScriptInit() return 1;public OnFilterScriptExit() return 1;public OnPlayerUpdate(playerid){ if(IsPlayerInRangeOfPoint(playerid,500.0,2653.6182,-2003.9534,13.3828)) SetPlayerGravity(playerid,0.002); else SetPlayerGravity(playerid,0.008); return 1;}
Ha az az egész scripted akkor nemcsoda ,hogy nem mûködik. #include <a_samp>#include <YSF>public OnFilterScriptInit() return 1;public OnFilterScriptExit() return 1;public OnPlayerUpdate(playerid){ if(IsPlayerInRangeOfPoint(playerid,500.0,2653.6182,-2003.9534,13.3828)) SetPlayerGravity(playerid,0.002); else SetPlayerGravity(playerid,0.008); return 1;} Az OnFilterScriptInit() eljárást oda kell írni,az OnFilterScriptExit - ben nem vagyok biztos mert pl. base.pwn-ben sincs de azért odaraktam.
if(IsPlayerInRangeOfPoint(playerid,500.0,2653.6182,-2003.9534,13.3828)) SetPlayerGravity(playerid,0.002); else SetPlayerGravity(playerid,0.008);
D:\\samp server 0.3a R7\\pawno\\include\\YSF.inc(96) : error 025: function heading differs from prototypeD:\\samp server 0.3a R7\\pawno\\include\\YSF.inc(96) : error 025: function heading differs from prototype
A kapcsolat alaphelyzetbe állt[/quote] :angry: :dead: