Raised This Month: $51 Target: $400
 12% 

[ES] Error en message_begin


  
 
 
Thread Tools Display Modes
Author Message
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 08-16-2010 , 23:48   [ES] Error en message_begin
#1

PHP Code:
#include <amxmodx>

new iconstatus
new iOrigin[3] = { 00}

new const 
szIcon[] = "item_longjump"

public plugin_init() {    
    
register_clcmd("say test""cmdTest")
    
iconstatus get_user_msgid("StatusIcon")
}

public 
cmdTest(id) {
    
message_begin(MSG_ONEiconstatusiOriginid)
    
write_byte(1// Show
    
write_string(szIcon)
    
write_byte(0)
    
write_byte(255)
    
write_byte(0)
    
message_end()

Error
Code:
Plugin called message_begin with an invalid message id (0).
[AMXX] Displaying debug trace (plugin "test.amxx")
[AMXX] Run time error 10: native error (native "message_begin")
[AMXX] [0] test.sma::cmdTest (line 18)
Testeado en HLDM...
Por lo poco que lei, puede que no funcione en HLDM, es cierto ? =/
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-17-2010 , 00:14   Re: [ES] Error en message_begin
#2

Puede ser que no funque en HLDM... de todas formas, probaste desactivando todos los plugins menos ese? Ya que si por ejemplo otro plugin tiene un message_begin() sin su correspondiente message_end() puede provocar ese error si no me equivoco.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
minato
Senior Member
Join Date: May 2010
Location: Rosario
Old 08-17-2010 , 00:16   Re: [ES] Error en message_begin
#3

PHP Code:
#include <amxmodx>

new iconstatus
new iOrigin[3] = { 00}

new const 
szIcon[] = "item_longjump"

public plugin_init() {    
    
register_clcmd("say test""cmdTest")
    
iconstatus get_user_msgid("StatusIcon")
}

public 
cmdTest(id) {
    
message_begin(MSG_BROADCASTiconstatusiOriginid)
    
write_byte(1// Show
    
write_string(szIcon)
    
write_byte(0)
    
write_byte(255)
    
write_byte(0)
    
message_end()

__________________
minato is offline
Send a message via MSN to minato
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 08-17-2010 , 00:18   Re: [ES] Error en message_begin
#4

Quote:
Originally Posted by Alucard^ View Post
Puede ser que no funque en HLDM... de todas formas, probaste desactivando todos los plugins menos ese? Ya que si por ejemplo otro plugin tiene un message_begin() sin su correspondiente message_end() puede provocar ese error si no me equivoco.
Todos los plugins son los que vienen por defecto.

Quote:
Originally Posted by minato View Post
PHP Code:
#include <amxmodx>

new iconstatus
new iOrigin[3] = { 00}

new const 
szIcon[] = "item_longjump"

public plugin_init() {    
    
register_clcmd("say test""cmdTest")
    
iconstatus get_user_msgid("StatusIcon")
}

public 
cmdTest(id) {
    
message_begin(MSG_BROADCASTiconstatusiOriginid)
    
write_byte(1// Show
    
write_string(szIcon)
    
write_byte(0)
    
write_byte(255)
    
write_byte(0)
    
message_end()

Ya habia probado eso y salio el mismo error.
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Old 08-17-2010, 00:23
minato
This message has been deleted by minato. Reason: x
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-17-2010 , 08:12   Re: [ES] Error en message_begin
#5

Proba asi

Code:
#include <amxmodx> new iconstatus new const szIcon[] = "item_longjump" public plugin_init() {        register_clcmd("say test", "cmdTest")     iconstatus = get_user_msgid("StatusIcon") } public cmdTest(id) {
    message_begin(MSG_ONE, iconstatus, _, id)
    write_byte(1) // Show     write_string(szIcon)     write_byte(0)     write_byte(255)     write_byte(0)     message_end() }
__________________
alan_el_more is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 08-17-2010 , 11:23   Re: [ES] Error en message_begin
#6

Salio el mismo error u.U
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 08-17-2010 , 12:33   Re: [ES] Error en message_begin
#7

Raro,a mi me anda,me gusto la idea de los inconos y me puse a pelotudiar hoy ala maņana,lo q no sabia era como sacarlo xD
Destro- is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-17-2010 , 13:29   Re: [ES] Error en message_begin
#8

Quote:
Originally Posted by Destro- View Post
Raro,a mi me anda,me gusto la idea de los inconos y me puse a pelotudiar hoy ala maņana,lo q no sabia era como sacarlo xD
write_byte(1) en 0

En fin, con respecto al problema, yo veo que esta todo bien... todo indica que es problema del mod. El mod HLDM por default tiene iconos como el cs?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
franco3000
New Member
Join Date: Feb 2010
Old 08-19-2010 , 15:18   Re: [ES] Error en message_begin
#9

Es posible que el plugin no ande por la version de AMX que estemos usando en el servidor?
franco3000 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-19-2010 , 15:26   Re: [ES] Error en message_begin
#10

Quote:
Originally Posted by franco3000 View Post
Es posible que el plugin no ande por la version de AMX que estemos usando en el servidor?
Obviamente.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



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 10:35.


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