View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-13-2012 , 10:25   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #140

Quote:
Originally Posted by gH0sTy View Post
Edit: Just got the same error for 2 dutch players so language 7 seems to be dutch on my server.
Oh right, I forgot to post the quick plugin I wrote to identify the language based on the language number, since they likely change for each new version and possibly even from server to server. It adds a command languageid that takes a number as an argument. I showed the output of it last week. Requires the generic admin flag to use, and will return language 0 (the server lang)'s info if you pass in a non-numeric argument.

(I should probably also file a feature request for a GetLanguageInfo like function in the translation extension API so that this can be done in the extension's error reporting. Edit: Feature Request Filed)

Edit: Reposted attachment, I originally posted a slightly older version.
Attached Files
File Type: sp Get Plugin or Get Source (languageid.sp - 485 views - 978 Bytes)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-16-2012 at 17:17.
Powerlord is offline