[SOLVED] NewRound stopped working O_O
1 Attachment(s)
i 'm making a "show the player with the most kills at the end of the round, then reset the counter an restart counting"-plugin
first it worked fine. then i thought why not show the result with a hudmessage. this didn't work (i read AMXX has some problems with hudmsgs). so i took the client_print function again. now (i found out after some tests) the endround event isn't fired my code is attached. Does any one know why the endround event doesn't work?:| if its the wrong forum plz move |
Re: NewRound stopped working O_O
Hmmm in all Tutorials I saw the new round event is
PHP Code:
PHP Code:
|
Re: NewRound stopped working O_O
i forgot to say i tried with the flag a and b and the "endround" is my function that is called :wink:
|
Re: NewRound stopped working O_O
Hmm something is wrong with ur server?
hmm and cant u use maybe register_logevent? |
Re: NewRound stopped working O_O
HLTV event is for Counter-strike only.
|
Re: NewRound stopped working O_O
sry forgot to say that its a cstrike server :wink: so it should work
@aviram: maybe because its a listenserver? |
Re: NewRound stopped working O_O
register_event("SendAudio", "eEndRound", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")
I saw this on miscstats.sma :O |
Re: NewRound stopped working O_O
i thought i told what i want the wrong way. i want the data to display at the START of a round! thats why i used HLTV as event. Can now ANYONE tell me WHY this DOESN'T work? hm?:|
|
Re: NewRound stopped working O_O
I'm sure that if you would refer to your amxx logs or server console you will see that you have a runtime error: index out of bounds. That is caused on line #26 and #51 of your code. This runtime error aborts endround() function call at the beginning so this makes you think that "NewRound stopped working".
Change: Quote:
Quote:
|
Re: NewRound stopped working O_O
Try this, should work.
Code:
|
| All times are GMT -4. The time now is 06:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.