13.07.2017, 10:29
hey guys, I was trying add a system of kicking when the server says the person is possibily hacking,
But I face error :
My code :
But I face error :
Code:
error 035: argument type mismatch (argument 1)
PHP Code:
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && AdminDuty[i] != 1 && !IsAPlane(GetPlayerVehicleID(i))) {
new Float:fCurrentSpeed;
fCurrentSpeed = player_get_speed(i);
fVehSpeed[i] = fCurrentSpeed;
if(fCurrentSpeed > 200) {
new string[74 + MAX_PLAYER_NAME];
format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be speed hacking (%.0f MPH).", GetPlayerNameEx(i), i, fCurrentSpeed);
Kick("%d"); //<<<<<ERRROR LINE!
ABroadCast(COLOR_YELLOW, string, 1);
SetPVarInt(i, "shW", GetPVarInt(i, "shW")+1);
if(GetPVarInt(i, "shW") >= 3) {
format(string, sizeof(string), "%s may possibly have speed hacked (speeds of %.0f MPH).", GetPlayerNameEx(i), fCurrentSpeed);
AddAutomatedFlag(i, string);
}
}
}