Raised This Month: $ Target: $400
 0% 

'ScreenShake': 10 bytes written, expected 6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EclipseCP
BANNED
Join Date: Dec 2010
Old 04-10-2011 , 11:38   'ScreenShake': 10 bytes written, expected 6
Reply With Quote #1

hello, sry for my bad english

I adapted the Automatic Unstuck (so that the players are unlocked on their own) to Zombie Plague, but it throws error in the logs with ScreenShake, and the server goes down

Error:
PHP Code:
User Msg 'ScreenShake'10 bytes writtenexpected 6 
Code:

PHP Code:
public effects(id) {
    if(
get_pcvar_num(cvar[1])) {
        
set_hudmessage(255,150,50, -1.00.6506.01.5,0.1,0.7// HUDMESSAGE
        
show_hudmessage(id,"Unstuck!"// HUDMESSAGE
        
message_begin(MSG_ONE_UNRELIABLE,105,{0,0,0},id )      
        
write_short(1<<10)   // fade lasts this long duration
        
write_short(1<<10)   // fade lasts this long hold time
        
write_short(1<<1)   // fade type (in / out)
        
write_byte(20)            // fade red
        
write_byte(255)    // fade green
        
write_byte(255)        // fade blue
        
write_byte(255)    // fade alpha
        
message_end()
        
client_cmd(id,"spk fvox/blip.wav")
    }

EclipseCP is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-10-2011 , 12:00   Re: 'ScreenShake': 10 bytes written, expected 6
Reply With Quote #2

http://wiki.amxmodx.org/Half-Life_1_...ts#ScreenShake
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-10-2011 , 12:14   Re: 'ScreenShake': 10 bytes written, expected 6
Reply With Quote #3

ScreenFade is not the same as ScreenShake, EclipseCP.
__________________
Arkshine is offline
Old 04-10-2011, 12:17
EclipseCP
This message has been deleted by EclipseCP.
EclipseCP
BANNED
Join Date: Dec 2010
Old 04-10-2011 , 12:20   Re: 'ScreenShake': 10 bytes written, expected 6
Reply With Quote #4

Ok, then the error should be around here

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)
                        }
                        
                    }      
                    
                } 
EclipseCP is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-10-2011 , 12:21   Re: 'ScreenShake': 10 bytes written, expected 6
Reply With Quote #5

You sill get an error with this code ?
__________________
Arkshine is offline
Trexsi
New Member
Join Date: Dec 2011
Old 12-12-2011 , 08:28   Re: 'ScreenShake': 10 bytes written, expected 6
Reply With Quote #6

This is where you are writing code?
Trexsi is offline
Trexsi
New Member
Join Date: Dec 2011
Old 12-12-2011 , 08:31   Re: 'ScreenShake': 10 bytes written, expected 6
Reply With Quote #7

Please tell emergency. Where and what we are writing code into the file?
Trexsi 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 01:48.


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