AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help fuckin mismatch. (https://forums.alliedmods.net/showthread.php?t=172736)

jc980 11-25-2011 10:15

help fuckin mismatch.
 
Code:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Tag mismatch on line 80
Header size:            852 bytes
Code size:            3612 bytes
Data size:            2560 bytes
Stack/heap size:      16384 bytes; estimated max. usage=322 cells (1288 bytes)
Total requirements:  23408 bytes

1 Warning.
Done.

wtf?

PHP Code:

enum Tutor_Sounds 
{
    
Notice,
    
Warning,
    
Promoted,
    
LevelUp,
    
Ready,
    
Alert,
    
Silent
}

new const 
csaw_tutor_sound[Tutor_Sounds][] = 
{
    
"csaw_vox/tutor_notice.wav"
    
"csaw_vox/tutor_warning.wav"
    
"csaw_vox/tutor_promoted.wav",
    
"csaw_vox/tutor_levelup.wav"
    
"csaw_vox/tutor_ready.wav",
    
"csaw_vox/tutor_alert.wav",
    
""
}
public 
plugin_precache()
{
    for(new 
0sizeof csaw_tutor_soundi++) 
        
precache_sound(csaw_tutor_sound[i])


This is the code related to the warning.

kiki33hun 11-25-2011 10:37

Re: help fuckin mismatch.
 
What 80. line?

padilha007 11-25-2011 10:42

Re: help fuckin mismatch.
 
PHP Code:

enum Tutor_Sounds  

    
Notice
    
Warning
    
Promoted
    
LevelUp
    
Ready
    
Alert


new const 
csaw_tutor_sound[][] =  

    
"csaw_vox/tutor_notice.wav",  
    
"csaw_vox/tutor_warning.wav",  
    
"csaw_vox/tutor_promoted.wav"
    
"csaw_vox/tutor_levelup.wav",  
    
"csaw_vox/tutor_ready.wav"
    
"csaw_vox/tutor_alert.wav"


public 
plugin_precache() 

    for(new 
0sizeof csaw_tutor_soundi++) 
    {
        
precache_sound(csaw_tutor_sound[i]);
    }



drekes 11-25-2011 10:51

Re: help fuckin mismatch.
 
PHP Code:

for(new Tutor_SoundsTutorSounds0TutorSoundsi++) 


nikhilgupta345 11-25-2011 22:15

Re: help fuckin mismatch.
 
Or simply changing this:
PHP Code:


enum Tutor_Sounds  

    
Notice
    
Warning
    
Promoted
    
LevelUp
    
Ready
    
Alert
    
Silent 


to this

PHP Code:


enum _
:Tutor_Sounds  

    
Notice
    
Warning
    
Promoted
    
LevelUp
    
Ready
    
Alert
    
Silent 



jc980 11-25-2011 22:45

Re: help fuckin mismatch.
 
Code:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Tag mismatch on line 162
Warning: Tag mismatch on line 164
Header size:            852 bytes
Code size:            3612 bytes
Data size:            2560 bytes
Stack/heap size:      16384 bytes; estimated max. usage=322 cells (1288 bytes)
Total requirements:  23408 bytes

2 Warnings.
Done.

PHP Code:

csaw_send_tutormsg(idTutor_Colors:iTypeTutor_Sounds:iSoundFloatHoldTime, const Msg[])
{
    if( 
iSound != Silent )
    {
        
client_cmd(id"spk %s"csaw_tutor_sound[iSound])
    }
        
    
message_begin(id MSG_ONE_UNRELIABLE MSG_BROADCASTcsaw_tutortext_msg, .player=id)
    
    
write_string(Msg)
    
    
write_byte(0)
    
    
write_short(-1)
    
write_shortid && !is_user_alive(id) ) 
    
write_short_:iType )
    
    
message_end()
    
    
id += TASK_OFFSET
    remove_task
(id)
    
    if( 
HoldTime 0.0 )
    {
        
set_task(HoldTime"csaw_tutor_close"id)
    }


iSound != Silent and the client_cmd


All times are GMT -4. The time now is 07:08.

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