I got this error after 10-15 minutes when server start. This error shutting down my plugin and all natives are in use by this.
PHP Code:
int GetClientCredits2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT credite FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientRP2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT rp FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientJob2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT job FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientMats2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT materiale FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientDrugs2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT droguri FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientOre2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT ore FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientMinute2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT minute FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientSecunde2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT secunde FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientOreAdmin2(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT oreadmin FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientSkillMats(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT skillmats FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientSkillDrugs(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT skilldrugs FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
int GetClientSkillAsasin(int client)
{
char steamid[55], qwe[256];
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "SELECT skillasasin FROM shopp WHERE steamid='%s'", steamid);
Handle asd = SQL_Query(DB, qwe);
if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
CloseHandle(asd);
}
void SetClientOre2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', ore='%i' WHERE steamid='%s'", name, steamid, suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientJob2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', job='%i' WHERE steamid='%s'", name, steamid, suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientMinute2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', minute='%i' WHERE steamid='%s'", name, steamid, suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientSecunde2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', secunde='%i' WHERE steamid='%s'", name, steamid, suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientCredits2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', credite='%i' WHERE steamid='%s'", name, steamid, GetClientCredits2(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientMats2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', materiale='%i' WHERE steamid='%s'", name, steamid, GetClientMats2(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientDrugs2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', droguri='%i' WHERE steamid='%s'", name, steamid, GetClientDrugs2(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientRP2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', rp='%i' WHERE steamid='%s'", name, steamid, GetClientRP2(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientOreAdmin2(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', oreadmin='%i' WHERE steamid='%s'", name, steamid, suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientSkillDrugs(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', skilldrugs='%i' WHERE steamid='%s'", name, steamid, GetClientSkillDrugs(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientSkillMats(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', skillmats='%i' WHERE steamid='%s'", name, steamid, GetClientSkillMats(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}
void SetClientSkillAsasin(int client, int suma)
{
char steamid[55], qwe[256], name[MAX_NAME_LENGTH];
GetClientName(client, name, sizeof(name));
GetClientAuthString(client, steamid, sizeof(steamid));
Format(qwe, sizeof(qwe), "UPDATE shopp SET nume='%s', steamid='%s', skillasasin='%i' WHERE steamid='%s'", name, steamid, GetClientSkillAsasin(client) + suma, steamid);
Handle asd = SQL_Query(DB, qwe);
CloseHandle(asd);
}