stock 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: stock problem (
/showthread.php?tid=412845)
stock problem -
pelani - 03.02.2013
is this stock?
Код:
GetPlayerPos(playerid,x,y,z);
GetPlayerPos(player2,x2,y2,z2);
new Float:distance=floatsqroot((x-x2)*(x-x2)+(y-y2)*(y-y2)+(z-z2)*(z-z2));
or yes? so pls make it like stock
example:
Код:
stock GetPlayerpos(playerid,x,y,z);
GetPlayerPos(playerid,x,y,z);
GetPlayerPos(player2,x2,y2,z2);
new Float:distance=floatsqroot((x-x2)*(x-x2)+(y-y2)*(y-y2)+(z-z2)*(z-z2));
i know how to make but i am not confirm so pls if i am wrong so fixed it and give me thanks.
Re: stock problem -
u3ber - 03.02.2013
pawn Код:
stock GetPlayerpos(playerid,x,y,z)
{ //note the opening curly-bracket
GetPlayerPos(playerid,x,y,z);
GetPlayerPos(player2,x2,y2,z2);.
new Float:distance=floatsqroot((x-x2)*(x-x2)+(y-y2)*(y-y2)+(z-z2)*(z-z2));
} //...and the closing
Re: stock problem -
pelani - 03.02.2013
thanks