#1

how to fix this,

new Float:aX, Float:aY, Float:aZ, szString[128];
GetPlayerCameraFrontVector(playerid, aX, aY, aZ);
#pragma unused aX
#pragma unused aY

if(aZ < -0.7)
{
new IP[32];
GetPlayerIp(playerid, IP, sizeof(IP));
TogglePlayerControllable(playerid, true);

if(PlayerInfo[playerid][pSMod] == 1 || PlayerInfo[playerid][pAdmin] == 1)
{
format(szString, sizeof(szString), "SELECT `Username` FROM `accounts` WHERE `AdminLevel` > 1 AND `Disabled` = 0 AND `IP` = '%s'", GetPlayerIpEx(playerid));
mysql_function_query(MainPipeline, szString, true, "CheckAccounts", "i", playerid);
}
else {
format(szString, sizeof(szString), "INSERT INTO `******kicks` (sqlID, Kicks) VALUES (%d, 1) ON DUPLICATE KEY UPDATE Kicks = Kicks + 1", GetPlayerSQLId(playerid));
mysql_function_query(MainPipeline, szString, false, "OnQueryFinish", "ii", SENDDATA_THREAD, playerid);

SendClientMessageEx(playerid, COLOR_RED, "The hacking tool '******' is not allowed on this server, please uninstall it.");
format(szString, sizeof(szString), "%s (IP: %s) has logged into the server with ****** installed.", GetPlayerNameEx(playerid), IP);
Log("logs/******.log", szString);
IsPlayerFrozen[playerid] = 0;
SetTimerEx("KickEx", 1000, 0, "i", playerid);
}

}

this should work but it dont! what fuck ?
Reply
#2

Please can you put your code in its easier for us to read then
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)