Raised This Month: $ Target: $400
 0% 

Help with GunGame


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
viniref
Junior Member
Join Date: Apr 2011
Old 05-13-2011 , 08:08   Help with GunGame
Reply With Quote #1

Below is the attachment of SMA in use.

After that I changed this part:


PHP Code:
else len += formatex(motd[len],1535-len,"%L<p>",player,key_LINE5C,winnerColor,winnerName,pointsExtraction[winner][0],pointsExtraction[winner][2],pointsExtraction[winner][3],pointsExtraction[winner][4]); 
What originally looked like this:


Code:
else len += formatex(motd[len],1535-len,"%L<p>",player,key_LINE5C,winnerColor,winnerName,pointsExtraction[winner][0],winnerWinSuffix,pointsExtraction[winner][2],pointsExtraction[winner][3],winnerStreakSuffix,pointsExtraction[winner][4]);
He began to present problems for Run-time error in the Console, when someone won the GunGame and open the MOTD that shows the statistics of who won, every time someone won the mistake appeared in the Console.

If anyone can fix it for me I appreciate it.

Thanks.
Attached Files
File Type: sma Get Plugin or Get Source (gungame (2).sma - 598 views - 283.2 KB)

Last edited by viniref; 05-13-2011 at 18:50.
viniref is offline
lis_16
Senior Member
Join Date: Feb 2008
Old 05-13-2011 , 17:49   Re: Help with GunGame
Reply With Quote #2

Did u change anything in language file?
lis_16 is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 05-13-2011 , 17:55   Re: Help with GunGame
Reply With Quote #3

Quote:
Originally Posted by viniref View Post
Below is the attachment of SMA in use.

After that I changed this part:


PHP Code:
else len += formatex(motd[len],1535-len,"%L<p>",player,key_LINE5C,winnerColor,winnerName,pointsExtraction[winner][0],pointsExtraction[winner][2],pointsExtraction[winner][3],pointsExtraction[winner][4]); 
What originally looked like this:


Code:
else len += formatex(motd[len],1535-len,"%L<p>",player,key_LINE5C,winnerColor,winnerName,pointsExtraction[winner][0],winnerWinSuffix,pointsExtraction[winner][2],pointsExtraction[winner][3],winnerStreakSuffix,pointsExtraction[winner][4]);
He began to present problems for Run-time error in the Console, when someone won the GunGame and open the MOTD that shows the statistics of who won, every time someone won the mistake appeared in the Console.

If anyone can fix it for me I appreciate it.

Thanks.

you removed 2 arguments... you probably must fix it and from the lang file?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
viniref
Junior Member
Join Date: Apr 2011
Old 05-13-2011 , 18:46   Re: Help with GunGame
Reply With Quote #4

Yes, I took 2 but corrected in the file lang.

Appears in the game all right, but when someone wins the GunGame this error always appears on the console:

L 05/11/2011 - 21:19:57: Start of error session.
L 05/11/2011 - 21:19:57: Info (map "gg_dust_vk") (file "addons/amxmodx/logs/error_20110511.log")
L 05/11/2011 - 21:19:57: String formatted incorrectly - parameter 12 (total 11)
L 05/11/2011 - 21:19:57: [AMXX] Run time error 25 (plugin "gungame.amxx") - debug not enabled!
L 05/11/2011 - 21:19:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).



And then I put debug after the plugin name, indicates that line that I changed and removed two arguments.
viniref is offline
lis_16
Senior Member
Join Date: Feb 2008
Old 05-14-2011 , 05:02   Re: Help with GunGame
Reply With Quote #5

Check again this string you changed. or give us this from plugin and from lang file.
lis_16 is offline
viniref
Junior Member
Join Date: Apr 2011
Old 05-14-2011 , 07:35   Re: Help with GunGame
Reply With Quote #6

Below is the SMA and the LANG.

Use the language [bp]
Attached Files
File Type: sma Get Plugin or Get Source (gungame (3).sma - 538 views - 283.2 KB)
File Type: txt gungame.txt (254.5 KB, 142 views)
viniref is offline
lis_16
Senior Member
Join Date: Feb 2008
Old 05-14-2011 , 09:48   Re: Help with GunGame
Reply With Quote #7

Maybe some players use different language so they have different key.
lis_16 is offline
Reply



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 19:17.


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