OK i changed the data file to
Code:
"Games"
{
"left4dead2"
{
"Signatures"
{
"TakeOverBot"
{
"library" "server"
"linux" "@_ZN13CTerrorPlayer11TakeOverBotEb"
"windows" "\x81*****\x53\x55\x56\x8D***\x57\x8B\xF1\x33\xDB"
}
"SetHumanSpec"
{
"library" "server"
"linux" "@_ZN11SurvivorBot17SetHumanSpectatorEP13CTerrorPlayer"
"windows" "\x53\x56\x8B\xF1\x33\xDB\x39*******\x5E\x32\xC0\x5B"
}
}
}
}
and it seems to now work but fails to display any error messages to player wanting to swap.
Works for survivors great but seems to fail for infected wanting to swap sides?
still getting errors
Code:
L 12/07/2015 - 05:14:12: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 12/07/2015 - 05:14:12: [SM] Displaying call stack trace for plugin "teamswitchvote.smx":
L 12/07/2015 - 05:14:12: [SM] [0] Line 1066, teamswitchvote.sp::ChangePlayerTeam()
L 12/07/2015 - 05:14:12: [SM] [1] Line 463, teamswitchvote.sp::handleSwitchAllowed()
L 12/07/2015 - 05:14:12: [SM] [2] Line 884, teamswitchvote.sp::checkIfVerdictReached()
L 12/07/2015 - 05:14:12: [SM] [3] Line 870, teamswitchvote.sp::handleVoteOf()
L 12/07/2015 - 05:14:12: [SM] [4] Line 1709, teamswitchvote.sp::VotingPanelHandler()
L 12/07/2015 - 05:18:31: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 12/07/2015 - 05:18:31: [SM] Displaying call stack trace for plugin "teamswitchvote.smx":
L 12/07/2015 - 05:18:31: [SM] [0] Line 1066, teamswitchvote.sp::ChangePlayerTeam()
L 12/07/2015 - 05:18:31: [SM] [1] Line 1528, teamswitchvote.sp::Command_JoinTeam()
L 12/07/2015 - 05:18:40: Error log file session closed.
SP
Code:
1066 SDKCall(fSHS, bot, client);
Code:
463 ChangePlayerTeam(clientRequestingSwitch, _:requestedTeam);
Code:
884 handleSwitchAllowed(clientNameRetrieved, clientName);
Code:
870 checkIfVerdictReached();
Code:
1709 handleVoteOf(VoteStatus:Allow, param1);
Code:
1528 ChangePlayerTeam(client, _:requestedTeam);
I hope someone can see some easy error that just needs tweaking or updating
Thanks in advance