11.11.2016, 21:46
oq devo fazer. Linhas Adicionadas.
ERRO
Codigo
ERRO
Код:
CBD.pwn(1997) : warning 219: local variable "PosX" shadows a variable at a preceding level CBD.pwn(1997) : warning 219: local variable "PosY" shadows a variable at a preceding level CBD.pwn(1997) : warning 219: local variable "PosZ" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
// SpeedHack forward AntiSH(); //aki public AntiSH() //aki { for(new i=0,j=GetMaxPlayers();i<=j;i++) { if(GetSpeedKM(i) > 350) Ban(i); //Mudanзa } return 1; } // Velocimetro stock GetVehicleSpeed(playerid) { if(!IsPlayerInAnyVehicle(playerid)) return 1; new Float:vPos[3]; GetVehicleVelocity(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]); return floatround((floatmul(floatsqroot(floatpower(vPos[0], 2.0) + floatpower(vPos[1], 2.0) + floatpower(vPos[2], 2.0)), 100.0) / 0.4463), floatround_floor); } stock GetSpeedKM(playerid) { new Float:PosX,Float:PosY,Float:PosZ,Float:PlayerSpeedDistance; GetVehicleVelocity(GetPlayerVehicleID(playerid), PosX, PosY, PosZ); PlayerSpeedDistance = floatmul(floatsqroot(floatadd(floatadd(floatpower(PosX, 2), floatpower(PosY, 2)), floatpower(PosZ, 2))), 170.0); new spe = floatround(PlayerSpeedDistance * 1); return spe; }