diff --git a/connect.inc b/connect.inc index f0a75aa..c2e27dd 100644 --- a/connect.inc +++ b/connect.inc @@ -6,7 +6,7 @@ forward bool OnClientPreConnectEx(const char[] name, char password[255], const char[] ip, const char[] steamID, char rejectReason[255]); -public Extension:__ext_Connect = +public Extension __ext_Connect = { name = "Connect", file = "connect.ext", diff --git a/connect.sp b/connect.sp index 14063d4..497533d 100644 --- a/connect.sp +++ b/connect.sp @@ -1,14 +1,15 @@ #pragma semicolon 1 // Force strict semicolon mode. +#pragma newdecls required // Force new syntax #include #define REQUIRE_EXTENSIONS #include -public bool:OnClientPreConnectEx(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]) +public bool OnClientPreConnectEx(const char[] name, char password[255], const char[] ip, const char[] steamID, char rejectReason[255]) { PrintToServer("----------------\nName: %s\nPassword: %s\nIP: %s\nSteamID: %s\n----------------", name, password, ip, steamID); - new AdminId:admin = FindAdminByIdentity(AUTHMETHOD_STEAM, steamID); + AdminId admin = FindAdminByIdentity(AUTHMETHOD_STEAM, steamID); if (admin == INVALID_ADMIN_ID) { @@ -21,4 +22,4 @@ public bool:OnClientPreConnectEx(const String:name[], String:password[255], cons } return true; -} \ No newline at end of file +}