27.04.2015, 16:59
Всем привет. Обнаружил флуд в mysql_log, плагин мускула R39-3 (pBlueG).
Ошибка:
Код (думаю где ошибка):
Судя по времени, думаю как авторизуется игрок.
Ошибка:
PHP код:
[19:10:57] [ERROR] cache_get_field_content_int - invalid datatype
[19:11:24] [ERROR] cache_get_field_content_int - invalid datatype
[19:11:32] [ERROR] cache_get_field_content_int - invalid datatype
[19:11:32] [ERROR] cache_get_field_content_int - invalid datatype
[19:11:41] [ERROR] cache_get_field_content_int - invalid datatype
[19:11:41] [ERROR] cache_get_field_content_int - invalid datatype
[19:11:49] [ERROR] cache_get_field_content_int - invalid datatype
Код (думаю где ошибка):
PHP код:
publics: LoginCallback(playerid, password[])
{
new rows = cache_num_rows();
if(!rows)
{
if(GetPVarInt(playerid, "wrongPass") == 2) return SendClientMessage(playerid,COLOR_GREY," . !"), KickEx(playerid,32);
SetPVarInt(playerid, "wrongPass", GetPVarInt(playerid, "wrongPass")+1);
format(stringer,MAX_STR, "{FFFFFF}! .\n {FFD300}%d .{FFFFFF}\n .", 3 - GetPVarInt(playerid, "wrongPass"));
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{FFD300} ", stringer, "", "");
return true;
}
PlayerInfo[playerid][pLevel] = cache_get_field_content_int(0, "pLevel");
PlayerInfo[playerid][pPhousekey] = cache_get_field_content_int(0, "pPhousekey");
PlayerInfo[playerid][pPbiskey] = cache_get_field_content_int(0, "pPbiskey");
PlayerInfo[playerid][pPsbiskey] = cache_get_field_content_int(0, "pPsbiskey");
PlayerInfo[playerid][bAdmin] = cache_get_field_content_int(0, "bAdmin");
PlayerInfo[playerid][pFuelcar] = cache_get_field_content_float(0, "pFuelcar");
PlayerInfo[playerid][pHeadValue] = cache_get_field_content_int(0, "pHeadValue");
PlayerInfo[playerid][pContract] = cache_get_field_content_int(0, "pContract");
PlayerInfo[playerid][pCar] = cache_get_field_content_int(0, "pCar");
PlayerInfo[playerid][pCar2] = cache_get_field_content_int(0, "pCar2");
PlayerInfo[playerid][pHelper] = cache_get_field_content_int(0, "pHelper");
PlayerInfo[playerid][pDMInections] = cache_get_field_content_int(0, "pDMInections");
PlayerInfo[playerid][pDRInections] = cache_get_field_content_int(0, "pDRInections");
PlayerInfo[playerid][pDRInectionsTime] = cache_get_field_content_int(0, "pDRInectionsTime");
PlayerInfo[playerid][pReg] = cache_get_field_content_int(0, "pReg");
PlayerInfo[playerid][pSex] = cache_get_field_content_int(0, "pSex");
PlayerInfo[playerid][pMuted] = cache_get_field_content_int(0, "pMuted");
PlayerInfo[playerid][pExp] = cache_get_field_content_int(0, "pExp");
PlayerInfo[playerid][pCash] = cache_get_field_content_int(0, "pCash");
PlayerInfo[playerid][pKills] = cache_get_field_content_int(0, "pKills");
PlayerInfo[playerid][pJailed] = cache_get_field_content_int(0, "pJailed");
PlayerInfo[playerid][pJailTime] = cache_get_field_content_int(0, "pJailTime");
PlayerInfo[playerid][pDrugs] = cache_get_field_content_int(0, "pDrugs");
PlayerInfo[playerid][pLRInections] = cache_get_field_content_int(0, "pLRInections");
PlayerInfo[playerid][pMRInections] = cache_get_field_content_int(0, "pMRInections");
PlayerInfo[playerid][pRKInections] = cache_get_field_content_int(0, "pRKInections");
PlayerInfo[playerid][pJob] = cache_get_field_content_int(0, "pJob");
PlayerInfo[playerid][pVodPrava] = cache_get_field_content_int(0, "pVodPrava");
PlayerInfo[playerid][pBizLic] = cache_get_field_content_int(0, "pBizLic");
PlayerInfo[playerid][pFlyLic] = cache_get_field_content_int(0, "pFlyLic");
PlayerInfo[playerid][pBoatLic] = cache_get_field_content_int(0, "pBoatLic");
PlayerInfo[playerid][pFishLic] = cache_get_field_content_int(0, "pFishLic");
PlayerInfo[playerid][pGunLic] = cache_get_field_content_int(0, "pGunLic");
PlayerInfo[playerid][pSDPistol] = cache_get_field_content_int(0, "pSDPistol");
PlayerInfo[playerid][pDesertEagle] = cache_get_field_content_int(0, "pDesertEagle");
PlayerInfo[playerid][pShotGun] = cache_get_field_content_int(0, "pShotGun");
PlayerInfo[playerid][pMP5] = cache_get_field_content_int(0, "pMP5");
PlayerInfo[playerid][pAK47] = cache_get_field_content_int(0, "pAK47");
PlayerInfo[playerid][pM4] = cache_get_field_content_int(0, "pM4");
PlayerInfo[playerid][pChar] = cache_get_field_content_int(0, "pChar");
PlayerInfo[playerid][pModel] = cache_get_field_content_int(0, "pModel");
PlayerInfo[playerid][pPnumber] = cache_get_field_content_int(0, "pPnumber");
PlayerInfo[playerid][pPayDayHad] = cache_get_field_content_int(0, "pPayDayHad");
PlayerInfo[playerid][pWarns] = cache_get_field_content_int(0, "pWarns");
PlayerInfo[playerid][punWarns] = cache_get_field_content_int(0, "punWarns");
PlayerInfo[playerid][punWarnstime] = cache_get_field_content_int(0, "punWarnstime");
PlayerInfo[playerid][pFuel] = cache_get_field_content_int(0, "pFuel");
PlayerInfo[playerid][pRobTime] = cache_get_field_content_int(0, "pRobTime");
PlayerInfo[playerid][pExitTied] = cache_get_field_content_int(0, "pExitTied");
PlayerInfo[playerid][pExitTiedNomer] = cache_get_field_content_int(0, "pExitTiedNomer");
PlayerInfo[playerid][pGrabSkill] = cache_get_field_content_int(0, "pGrabSkill");
PlayerInfo[playerid][pGrabTime] = cache_get_field_content_int(0, "pGrabTime");
PlayerInfo[playerid][pReportTime] = cache_get_field_content_int(0, "pReportTime");
PlayerInfo[playerid][pVerevka] = cache_get_field_content_int(0, "pVerevka");
PlayerInfo[playerid][pOtmbI4ka] = cache_get_field_content_int(0, "pOtmbI4ka");
PlayerInfo[playerid][pAutoTime] = cache_get_field_content_int(0, "pAutoTime");
PlayerInfo[playerid][pAutoSkill] = cache_get_field_content_int(0, "pAutoSkill");
PlayerInfo[playerid][pMarried] = cache_get_field_content_int(0, "pMarried");
PlayerInfo[playerid][pMuteTime] = cache_get_field_content_int(0, "pMuteTime");
PlayerInfo[playerid][pMobile] = cache_get_field_content_int(0, "pMobile");
PlayerInfo[playerid][pBank] = cache_get_field_content_int(0, "pBank");
PlayerInfo[playerid][pBoxSkill] = cache_get_field_content_int(0, "pBoxSkill");
PlayerInfo[playerid][pKongfuSkill] = cache_get_field_content_int(0, "pKongfuSkill");
PlayerInfo[playerid][pKickboxSkill] = cache_get_field_content_int(0, "pKickboxSkill");
PlayerInfo[playerid][pFightSkill] = cache_get_field_content_int(0, "pFightSkill");
PlayerInfo[playerid][pFightSkil] = cache_get_field_content_int(0, "pFightSkil");
PlayerInfo[playerid][pFightTime] = cache_get_field_content_int(0, "pFightTime");
PlayerInfo[playerid][pHospital] = cache_get_field_content_int(0, "pHospital");
PlayerInfo[playerid][pDostup] = cache_get_field_content_int(0, "pDostup");
PlayerInfo[playerid][pZakonp] = cache_get_field_content_int(0, "pZakonp");
PlayerInfo[playerid][pVipTime] = cache_get_field_content_int(0, "pVipTime");
PlayerInfo[playerid][pHouse] = cache_get_field_content_int(0, "pHouse");
PlayerInfo[playerid][pVipData] = cache_get_field_content_int(0, "pVipData");
PlayerInfo[playerid][pProz] = cache_get_field_content_int(0, "pProz");
PlayerInfo[playerid][pKolesocar] = cache_get_field_content_int(0, "pKolesocar");
PlayerInfo[playerid][pPokraska] = cache_get_field_content_int(0, "pPokraska");
PlayerInfo[playerid][pSpoiler] = cache_get_field_content_int(0, "pSpoiler");
PlayerInfo[playerid][pHood] = cache_get_field_content_int(0, "pHood");
PlayerInfo[playerid][pExhaust] = cache_get_field_content_int(0, "pExhaust");
PlayerInfo[playerid][pLamps] = cache_get_field_content_int(0, "pLamps");
PlayerInfo[playerid][pSideskirt] = cache_get_field_content_int(0, "pSideskirt");
PlayerInfo[playerid][pVozdyx] = cache_get_field_content_int(0, "pVozdyx");
PlayerInfo[playerid][pVcol1] = cache_get_field_content_int(0, "pVcol1");
PlayerInfo[playerid][pVcol2] = cache_get_field_content_int(0, "pVcol2");
PlayerInfo[playerid][pBamper1] = cache_get_field_content_int(0, "pBamper1");
PlayerInfo[playerid][pBamper2] = cache_get_field_content_int(0, "pBamper2");
PlayerInfo[playerid][pNitro] = cache_get_field_content_int(0, "pNitro");
PlayerInfo[playerid][pGidra] = cache_get_field_content_int(0, "pGidra");
PlayerInfo[playerid][pMestoJail] = cache_get_field_content_int(0, "pMestoJail");
PlayerInfo[playerid][pWanted] = cache_get_field_content_int(0, "pWanted");
PlayerInfo[playerid][pHousecash] = cache_get_field_content_int(0, "pHousecash");
PlayerInfo[playerid][pTut] = cache_get_field_content_int(0, "pTut");
PlayerInfo[playerid][pBoss] = cache_get_field_content_int(0, "pBoss");
//cache_get_field_content(0, "pBoss", PlayerInfo[playerid][pBoss], connects, strlen(PlayerInfo[playerid][pBoss]));
cache_get_field_content(0, "pPhone", PlayerInfo[playerid][pPhone], connects, strlen(PlayerInfo[playerid][pPhone]));
cache_get_field_content(0, "pNumbercar", PlayerInfo[playerid][pNumbercar], connects, strlen(PlayerInfo[playerid][pNumbercar]));
cache_get_field_content(0, "pIpReg", PlayerInfo[playerid][pIpReg], connects, strlen(PlayerInfo[playerid][pIpReg]));
PlayerInfo[playerid][pAvig] = cache_get_field_content_int(0, "pAvig");
PlayerInfo[playerid][vig] = cache_get_field_content_int(0, "vig");
PlayerInfo[playerid][pPhonePlayer] = cache_get_field_content_int(0, "pPhonePlayer");
PlayerInfo[playerid][pSpawn] = cache_get_field_content_int(0, "pSpawn");
PlayerInfo[playerid][CarX] = cache_get_field_content_float(0, "CarX");
PlayerInfo[playerid][CarY] = cache_get_field_content_float(0, "CarY");
PlayerInfo[playerid][CarZ] = cache_get_field_content_float(0, "CarZ");
PlayerInfo[playerid][CarC] = cache_get_field_content_float(0, "CarC");
PlayerInfo[playerid][pReports] = cache_get_field_content_int(0, "pReports");
PlayerInfo[playerid][pWarnings] = cache_get_field_content_int(0, "pWarnings");
PlayerInfo[playerid][pBans] = cache_get_field_content_int(0, "pBans");
PlayerInfo[playerid][pKicks] = cache_get_field_content_int(0, "pKicks");
PlayerInfo[playerid][pEmail] = cache_get_field_content_int(0, "pEmail");
player_family [ playerid ] = cache_get_field_content_int(0, "family");
if(PlayerInfo[playerid][bAdmin] > 0) SetPVarInt(playerid, "bAdmin",1);
//printf("bAdmin = %i", PlayerInfo[playerid][bAdmin] ) ;
if(GetPVarInt(playerid,"table_ban") == 0 && PlayerInfo[playerid][pLogin] == 0)
{
new strinf[128];
mysql_format(connects, strinf, sizeof(strinf), "SELECT * FROM `table_ban` WHERE `Name_Player` = '%s'", PlayerInfo[playerid][pNames]);
mysql_tquery(connects, strinf, "Check_Ban_List", "dsd", playerid,PlayerInfo[playerid][pNames],2);
return true;
}
return true;
}
Судя по времени, думаю как авторизуется игрок.