Raised This Month: $ Target: $400
 0% 

Last man bets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-04-2005 , 05:22  
Reply With Quote #1

This Plugin is Great, i ahve been using it for so long now, i forget how long... But anyway is there anyway to get rid of teh clien_print? at teh end of the round it shows up, about 7 lines. I was just wondering if there was an easy way of getting rid of this, if not then forget it, curious thats all. This is great tho Johnny, nice work, everybody loves to bet these days
__________________
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-05-2005 , 23:51  
Reply With Quote #2

Quote:
Originally Posted by bmann_420
This Plugin is Great, i ahve been using it for so long now, i forget how long... But anyway is there anyway to get rid of teh clien_print? at teh end of the round it shows up, about 7 lines. I was just wondering if there was an easy way of getting rid of this, if not then forget it, curious thats all. This is great tho Johnny, nice work, everybody loves to bet these days
EDIT: I commented out all client_print and Server_print in the areas i wanted
Code:
get_user_name(i, name, 32)         if (totalrightbets > 0 && g_betperson[i] == result) { // Just to avoid divison by 0 (which shouldn't happen, but...)             // This player should have money. How much? ((g_betamount[i] / totalrightbets) * overallbets)             wonmoney = (float(g_betamount[i]) / float(totalrightbets)) * float(overallbets)             //client_print(i, print_chat, "You won the bet! You receive your bet, $%d, and an additional $%d!", g_betamount[i], floatround(wonmoney) - g_betamount[i])             //server_print("%s won the bet and receives his original bet, $%d, and an additional $%d!", name, g_betamount[i], floatround(wonmoney) - g_betamount[i])             altermoney(i, floatround(wonmoney))             if (wonmoney - g_betamount[i] > highestwonmoney) {                 nr_of_highestwinners = 0                 highestwinners[nr_of_highestwinners++] = i                 highestwonmoney = wonmoney - g_betamount[i]             }             else if (wonmoney - g_betamount[i] == highestwonmoney) {                 highestwinners[nr_of_highestwinners++] = i             }         }         else if (g_betperson[i] == 0) {             //client_print(i, print_chat, "You didn't bet this time.")             //server_print("%s didn't place a bet this time...", name)         }         else {             //client_print(i, print_chat, "You lost your $%d bet!", g_betamount[i])             //server_print("%s lost $%d on a betting...", name, g_betamount[i])         }     }     //statsworker(highestwinners, nr_of_highestwinners, highestwonmoney)     if (nr_of_highestwinners == 0) { // Did anyone make the right bet? If not, move the bet money to the pot.         //client_print(0, print_chat, "No one won anything. $%d is added to the pot. Pot value: $%d", overallbets, g_pot += overallbets)         set_vaultpot(g_pot)         return     }     else if (nr_of_highestwinners == 1) { // Winner takes it all.         get_user_name(highestwinners[0], name, 32)         if (g_pot != 0) {             //client_print(0, print_chat, "%s won $%d with a $%d bet, thus also winning the pot, $%d!", name, floatround(highestwonmoney), g_betamount[highestwinners[0]], g_pot)             give_pot(nr_of_highestwinners, highestwinners)         }         else {             if (highestwonmoney >= 1.0)                 //client_print(0, print_chat, "%s won $%d with a $%d bet, however the pot is empty.", name, floatround(highestwonmoney), g_betamount[highestwinners[0]])         }

I get 10 errors when i try and compile
Code:
Welcome to the AMX Mod X 1.00-251 Compiler.
Copyright (c) 1997-2004 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp/phpYutJUG.sma(241) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(293) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(308) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(545) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(580) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(594) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(910) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(923) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(938) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(957) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(995) : error 017: undefined symbol "set_vaultpot"
/home/groups/amxmodx/tmp/phpYutJUG.sma(1002) : error 017: undefined symbol "give_pot"
/home/groups/amxmodx/tmp/phpYutJUG.sma(1007) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpYutJUG.sma(1009) : warning 217: loose indentation
/home/groups/amxmodx/tmp/phpYutJUG.sma(1009) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpYutJUG.sma(1013) : error 017: undefined symbol "give_pot"
/home/groups/amxmodx/tmp/phpYutJUG.sma(1018) : warning 219: local variable "i" shadows a variable at a preceding level
/home/groups/amxmodx/tmp/phpYutJUG.sma(1031) : warning 217: loose indentation
/home/groups/amxmodx/tmp/phpYutJUG.sma(1031) : error 017: undefined symbol "set_vaultpot"
/home/groups/amxmodx/tmp/phpYutJUG.sma(1033) : error 017: undefined symbol "value"
/home/groups/amxmodx/tmp/phpYutJUG.sma(1033) : warning 215: expression has no effect
/home/groups/amxmodx/tmp/phpYutJUG.sma(1033) : warning 215: expression has no effect
/home/groups/amxmodx/tmp/phpYutJUG.sma(1033) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp/phpYutJUG.sma(1033) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpYutJUG.sma(1033) : fatal error 107: too many error messages on one line

Compilation aborted.
10 Errors.
Could not locate output file /home/users/amxmodx/public_html/websc/phpYutJUG.amx (compile failed).


Read the errors above. Your plugin failed to compile. Make sure it is has the correct #includes.
So, i am no scripter, obviously, but i thougth this would fix the problem, but no luk, any help would be appreciated.
__________________
bmann_420 is offline
TJA
Junior Member
Join Date: May 2005
Old 08-30-2005 , 13:43  
Reply With Quote #3

You cannot uncomment in this way ...
You destroy the syntax.
TJA is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-30-2005 , 14:56  
Reply With Quote #4

I commented it out a different way, and it works. I dont like that spamming, but its fixed. And i said this a while ago....
__________________
bmann_420 is offline
CadaVeR
Member
Join Date: Aug 2005
Location: Miami, Florida
Old 08-31-2005 , 01:02  
Reply With Quote #5

very fun plugin 8/10
CadaVeR is offline
Send a message via AIM to CadaVeR Send a message via MSN to CadaVeR Send a message via Yahoo to CadaVeR
bolzbolz
Junior Member
Join Date: Oct 2005
Old 10-14-2005 , 06:04  
Reply With Quote #6

hi!
great plugin!!
one question i have: is it possible for you to release a "stealth" version? so that those last two players get no information and no irritation till they are death?
__________________
kill me @ 62.93.205.101:27015 [1.6]
kill me @ 62.93.205.101:27115 [CS:S]
bolzbolz is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-14-2005 , 08:52  
Reply With Quote #7

Try this:

On line 309 you have:

Code:
        if (!is_user_connected(i) || is_user_bot(i))

Change it to:

Code:
        if (!is_user_connected(i) || is_user_bot(i) || i == g_t || i == g_ct)
Johnny got his gun is offline
DaSilva
Senior Member
Join Date: Oct 2005
Location: Germany
Old 10-15-2005 , 21:16  
Reply With Quote #8

how can i edit some options without being in the game? is there a config which is executed at start?
last time i tested it it gaves me my 1100$ back after winning!
is this normal?
could not test it more...
DaSilva is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 10-16-2005 , 00:10  
Reply With Quote #9

Umm, yes it is
__________________
bmann_420 is offline
DaSilva
Senior Member
Join Date: Oct 2005
Location: Germany
Old 10-22-2005 , 13:16  
Reply With Quote #10

How can I fill the pot always with 200$ instead of 0$ On the start of the server 200$ should be in the pot and after giving all the money of the pot to one team/player next round should be 200$ in the pot again...
DaSilva 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 06:45.


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