[INC HELP] Speed.inc
#1

Hello Guys...i want make a Speed.inc but i have a warning "warning 213: tag mismatch" when i want compile my script...

stock GetPlayerSpeed(playerid)
{
GetPlayerPos(playerid, SPos[playerid][3], SPos[playerid][4], SPos[playerid][5]);
if(SPos[playerid][5] > 550.0)
{
SPos[playerid][0] = 0.0;
SPos[playerid][1] = 0.0;
}
if(SPos[playerid][0] != 0.0)
{
new Floatdist = SPos[playerid][3]-SPos[playerid][0];
new Float:ydist = SPos[playerid][4]-SPos[playerid][1];
new Floatqxdist = xdist*xdist;
new Floatqydist = ydist*ydist;
new Float:distance = (sqxdist+sqydist)/31;
return distance;
}
return 1;
}

whats the problem? pls help
Reply


Messages In This Thread
[INC HELP] Speed.inc - by szep_anita_01 - 18.04.2009, 16:49
Re: [INC HELP] Speed.inc - by Castle - 18.04.2009, 17:05
Re: [INC HELP] Speed.inc - by ICECOLDKILLAK8 - 18.04.2009, 17:35
Re: [INC HELP] Speed.inc - by pspleo - 18.04.2009, 17:38
Re: [INC HELP] Speed.inc - by Joe Staff - 18.04.2009, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)