|
Member
Join Date: Dec 2018
Location: Romania
|
06-27-2019
, 09:10
Re: [CSGO] Sbpp_main advanced reason
|
#3
|
Quote:
Originally Posted by Shane1390
Read the error my guy:
Code:
KickClient("Ai primit BAN\nNumele tau: %N\nNumele adminului: %N\nDurata: %d\nMotiv:%s\nMai multe detalii pe %t", client, admin, time, reason, WebsiteAddress);
Read the docs:
https://sm.alliedmods.net/new-api/clients/KickClient
Code:
void KickClient(int client, const char[] format, any... ...)
Your plugin doesn't target a player, so you need to alter line 1185 to target the client, as such:
Code:
KickClient(client, "Ai primit BAN\nNumele tau: %N\nNumele adminului: %N\nDurata: %d\nMotiv:%s\nMai multe detalii pe %t", client, admin, time, reason, WebsiteAddress);
|
My mistake , now i put
PHP Code:
KickClient(client, "Ai primit BAN\nNumele tau: %N\nNumele adminului: %N\nDurata: %d\nMotiv:%s\nMai multe detalii pe %t", client, admin, time, Reason, WebsiteAddress);
But now i have 1 warning
PHP Code:
// sbpp_main2.sp(2739) : warning 234: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead.
2739 - Here
PHP Code:
stock AccountForLateLoading()
{
char auth[30];
for (new i = 1; i <= GetMaxClients(); i++) // HERE 2739
{
if (IsClientConnected(i) && !IsFakeClient(i))
{
PlayerStatus[i] = false;
}
if (IsClientInGame(i) && !IsFakeClient(i) && IsClientAuthorized(i) && GetClientAuthId(i, AuthId_Steam2, auth, sizeof(auth)))
{
OnClientAuthorized(i, auth);
}
}
}
__________________
|
|
|
|