Raised This Month: $165 Target: $400
 41% 

[Solved] SourceBans++ compiling error


Post New Thread Reply   
 
Thread Tools Display Modes
qNiGHT
Junior Member
Join Date: Mar 2019
Old 09-28-2019 , 16:40   Re: [Help] SourceBans++ compiling error
Reply With Quote #11

Quote:
Originally Posted by RumbleFrog View Post
Which version...? You just linked to an entire release branch.
Latest downloads for version 1.9 - build 6282:

will you help?

Last edited by qNiGHT; 09-28-2019 at 18:13.
qNiGHT is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 09-29-2019 , 00:49   Re: [Help] SourceBans++ compiling error
Reply With Quote #12

And what include version? OnRebuildAdminCache is showing prototype mismatch.
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
qNiGHT
Junior Member
Join Date: Mar 2019
Old 09-29-2019 , 05:34   Re: [Help] SourceBans++ compiling error
Reply With Quote #13

Quote:
Originally Posted by RumbleFrog View Post
And what include version? OnRebuildAdminCache is showing prototype mismatch.
i know,
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// sbpp_main.sp
//
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(336) : warning 219: local variable "ip" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(380) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(423) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(440) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(449) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(489) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(526) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(580) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(633) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(658) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(957) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1116) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1120) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1124) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1124) : warning 219: local variable "auth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1124) : warning 219: local variable "ip" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1124) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1142) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1151) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1155) : warning 219: local variable "Reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1193) : error 035: argument type mismatch (argument 2)
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1194) : error 017: undefined symbol "adminAuth"
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1200) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1201) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1201) : warning 219: local variable "ip" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1202) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1249) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1250) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1290) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1291) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1292) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1345) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1347) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1383) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1384) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1385) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1431) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1433) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1477) : warning 219: local variable "auth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1478) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1480) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1482) : warning 219: local variable "ip" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1483) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1541) : warning 219: local variable "auth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1652) : error 017: undefined symbol "Reason"
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(1653) : error 017: undefined symbol "admin"
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2346) : warning 219: local variable "time" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2347) : warning 219: local variable "reason" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2470) : warning 219: local variable "adminAuth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2471) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2492) : warning 219: local variable "ip" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2492) : warning 219: local variable "auth" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2575) : warning 219: local variable "admin" shadows a variable at a preceding level
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2603) : error 035: argument type mismatch (argument 2)
// D:\sourcemod 1.9\addons\sourcemod\scripting\sbpp_main.sp(2805) : warning 219: local variable "auth" shadows a variable at a preceding level
//
// 5 Errors.
//
// Compilation Time: 0.42 sec
// ----------------------------------------

Press enter to exit ...
i want to fix the errors not the warnings..........
qNiGHT is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 09-29-2019 , 11:09   Re: [Help] SourceBans++ compiling error
Reply With Quote #14

You're getting these errors because you're using variables that don't exist. Like on line 1193 and 1194:
PHP Code:
        ConsoleInfoPrint(clientadminreasontimeauthip);
        
KickClient(client"Banned by %s, \nAdmin SteamID: %s\nComplains at %s, \nReason: %s, \nLength: %s, \nSteamid:%s, \nIp:%s"adminadminAuthWebsiteAddressreasontimeauthip); 
You need to read auth, ip and adminAuth from the datapack first.

Also admin and time are integers, but you're passing them as strings to ConsoleInfoPrint and KickClient.
__________________

Last edited by DJ Tsunami; 09-29-2019 at 11:11.
DJ Tsunami is offline
qNiGHT
Junior Member
Join Date: Mar 2019
Old 09-30-2019 , 15:19   Re: [Help] SourceBans++ compiling error
Reply With Quote #15

Now i don't have any errors ... ( clean source from https://github.com/sbpp/sourcebans-pp )

Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// sbpp_main.sp
//
// Code size:            57240 bytes
// Data size:            17236 bytes
// Stack/heap size:      16384 bytes
// Total requirements:   90860 bytes
//
// Compilation Time: 0.5 sec
// ----------------------------------------

Press enter to exit ...
But i still don't know i can do something like this https://forums.alliedmods.net/showth...=201679&page=3
qNiGHT is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 09-30-2019 , 23:07   Re: [Help] SourceBans++ compiling error
Reply With Quote #16

If you are referring to the detailed kick message, it's already merged: https://github.com/sbpp/sourcebans-p...rases.txt#L171
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:15.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode