error 017: undefined symbol "GetPlayerSpeed"
#10

Well as I told you before you HAVE to define GetPlayerSpeed manually because it's not a native function. In case of you couldn't do that, here's a defination I found on the net:

pawn Код:
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)) * 179.28625;
    return floatround(ST[3]);
}
and the usage of it obviously is GetPlayerSpeed(playerid) not GetPlayerSpeed(playerid, bool); so modify your code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)