View Single Post
PorcusorulMagic
Member
Join Date: Dec 2018
Location: Romania
Old 06-27-2019 , 09:10   Re: [CSGO] Sbpp_main advanced reason
Reply With Quote #3

Quote:
Originally Posted by Shane1390 View Post
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"clientadmintimeReasonWebsiteAddress); 
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 
1<= GetMaxClients(); i++)          // HERE 2739
    
{
        if (
IsClientConnected(i) && !IsFakeClient(i))
        {
            
PlayerStatus[i] = false;
        }
        if (
IsClientInGame(i) && !IsFakeClient(i) && IsClientAuthorized(i) && GetClientAuthId(iAuthId_Steam2authsizeof(auth)))
        {
            
OnClientAuthorized(iauth);
        }
    }

__________________
Steam - https://steamcommunity.com/id/porcusorulmagic
Discord - PorcusorulMagic#4908
PorcusorulMagic is offline