12.03.2011, 18:15
hello!
when i compile it shows like this
i mean that warning.
how to fix it.
here it is the code
when i compile it shows like this
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\Windows server\gamemodes\Paradise_City.pwn(8941) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 6744 bytes
Code size: 508200 bytes
Data size: 371672 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 903000 bytes
1 Warning.
how to fix it.
here it is the code
pawn Код:
Float:GetDistanceToPoint(playerid,Float:x2,Float:y2,Float:z2)
{
if (IsPlayerConnected(playerid))
{
new Float:x1,Float:y1,Float:z1;
GetPlayerPos(playerid,x1,y1,z1);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
return 999.9;
}