Raised This Month: $ Target: $400
 0% 

MSG_ONE or MSG_ONE_UNRELIABLE with no target entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-23-2011 , 18:38   MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #1

error (title) in this code

MSG_ONE or MSG_ONE_UNRELIABLE with no target entity

PHP Code:
                for (new 132i++) {
                    if (
is_user_alive(i) == 1) {
                        
get_user_origin(iPlayerPos)
                        
Distance get_distance(PlayerPosorigin2)
                        if (
Distance <= Damage_Radius) {  // Screenshake Radius
                            
                            
message_begin(MSG_ONEget_user_msgid("ScreenShake"), {0,0,0}, i)  // Shake Screen
                            
write_short(1<<14)
                            
write_short(1<<14)
                            
write_short(1<<14)
                            
message_end()

                            
Damage Max_Damage floatround(floatmul(float(Max_Damage), floatdiv(float(Distance), float(Damage_Radius))))
                            
//if(!zp_get_user_zombie(id2) && !zp_get_user_nemesis(id2))
                            
do_victim(i,victim,Damage,0)
                        }
                        
                    } 
a solution?
EclipseCP is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 03-23-2011 , 18:50   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #2

I'm not sure about this but try it anyway
PHP Code:
                for (new 132i++) {
                    if (
is_user_alive(i) && is_user_connected(i)) {
                        
get_user_origin(iPlayerPos)
                        
Distance get_distance(PlayerPosorigin2)
                        if (
Distance <= Damage_Radius) {  // Screenshake Radius
                            
                            
message_begin(MSG_ONEget_user_msgid("ScreenShake"), {0,0,0}, i)  // Shake Screen
                            
write_short(1<<14)
                            
write_short(1<<14)
                            
write_short(1<<14)
                            
message_end()

                            
Damage Max_Damage floatround(floatmul(float(Max_Damage), floatdiv(float(Distance), float(Damage_Radius))))
                            
//if(!zp_get_user_zombie(id2) && !zp_get_user_nemesis(id2))
                            
do_victim(i,victim,Damage,0)
                        }
                        
                    } 
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
EclipseCP
BANNED
Join Date: Dec 2010
Old 03-23-2011 , 19:16   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #3

Thanks. I'll try later to see if it still happens. The problem was that upon entering the switch map throw "Bad character in client command", and read the logs, and it said that I put in the title

Sorry Bad English
EclipseCP is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-24-2011 , 03:08   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #4

Consider using get_players with flag "a", you will get a list of connected alive players.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 03-24-2011 , 06:25   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
Reply With Quote #5

Im not sure but I think you should check for bots too.
__________________
mabaclu 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 14:34.


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