Need a help
#1

Hello,

Код:
stock GetPlayerSpeed(playerid)
{
    new Float:ST[4];
    if(IsPlayerInAnyVehicle(playerid))
    GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
    else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
    ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 100.3;
    return floatround(ST[3]);
}
public OnPlayerUpdate(playerid)
{
    if(GetPlayerSpeed > 160) return Kick(playerid);
    return 1;
}
I get that:
Код:
G:\Disque Local [E]\samp\gamemodes\lvdm.pwn(1412) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Need a help - by [HRD]Mar1 - 11.03.2012, 15:58
Re: Need a help - by mrskull42 - 11.03.2012, 16:00
Re : Need a help - by [HRD]Mar1 - 11.03.2012, 16:03
Re: Need a help - by CmZxC - 11.03.2012, 16:15
Re : Need a help - by [HRD]Mar1 - 11.03.2012, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)