AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with GunGame (https://forums.alliedmods.net/showthread.php?t=156863)

viniref 05-13-2011 08:08

Help with GunGame
 
1 Attachment(s)
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.

lis_16 05-13-2011 17:49

Re: Help with GunGame
 
Did u change anything in language file?

ProIcons 05-13-2011 17:55

Re: Help with GunGame
 
Quote:

Originally Posted by viniref (Post 1468503)
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?

viniref 05-13-2011 18:46

Re: Help with GunGame
 
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.

lis_16 05-14-2011 05:02

Re: Help with GunGame
 
Check again this string you changed. or give us this from plugin and from lang file.

viniref 05-14-2011 07:35

Re: Help with GunGame
 
2 Attachment(s)
Below is the SMA and the LANG.

Use the language [bp]

lis_16 05-14-2011 09:48

Re: Help with GunGame
 
Maybe some players use different language so they have different key.


All times are GMT -4. The time now is 04:28.

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