stock problem
#1

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

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

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)