Raised This Month: $ Target: $400
 0% 

[INC] Colors (1.0.5)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-26-2014 , 16:06   Re: [INC] Colors (1.0.5)
Reply With Quote #21

Quote:
Originally Posted by Ellie View Post
Ok been testing this with multiple plugins and it seems to have trouble with translations and ends up not printing anything. I used the slap.sp with playercommands from sourcemod as one of my tests and got this:

Code:
L 03/25/2014 - 11:29:56: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/25/2014 - 11:29:56: [SM] Native "VFormat" reported: Language phrase "%t" not found
L 03/25/2014 - 11:29:56: [SM] Displaying call stack trace for plugin "playercommands.smx":
L 03/25/2014 - 11:29:56: [SM]   [0]  Line 833, C:\Program Files\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\include\colors.inc::CShowActivity2()
L 03/25/2014 - 11:29:56: [SM]   [1]  Line 113, playercommands/slay.sp::MenuHandler_Slay()
The printochats and replytocommands work fine, it's just the showactivity ones not working.
Looks like I passed the wrong argument to VFormat in CShowActivity2 and CShowActivityEx. Try this.

Edit: Spotted more errors. Fixing really quickly.

Edit 2: Fixed all 4 VFormat calls each for both CShowActivity2 and CShowActivityEx.

NOTE: This version is compiled for Debugging, so it has a lot of extra debugging messages output. I'll probably compile a non-debug version sometime soon (April 1).
Attached Files
File Type: inc colors.inc (25.7 KB, 226 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-01-2014 at 15:03.
Powerlord is offline
 



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 23:00.


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