30.11.2012, 12:51
DEFINE THEM! Don't only paste parts to your script, you need to define them first, otherwise you'll get errors/warning.
Let's start;
Use GetPlayerName instead of GetPlayerNameEx, or use GetPlayerNameEx(playerid); by adding the following stock
Also
Let's start;
Use GetPlayerName instead of GetPlayerNameEx, or use GetPlayerNameEx(playerid); by adding the following stock
pawn Код:
// At the bottom
stock GetPlayerNameEx(playerid) // <-- This stock for GetPlayerNameEx(playerid);
{
new nname[MAX_PLAYER_NAME];
GetPlayerName(playerid, nname, sizeof(nname));
return nname;
}
pawn Код:
// At the top, under includes/define
forward NameTimer(/* parameters here, if there are */)
// At the bottom
stock Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
new Float:x, Float:y, Float:z;
x = x1-x2;
y = y1-y2;
z = z1-z2;
return floatsqroot(x*x+y*y+z*z);
}