hlmod.hu
https://hlmod.hu/

Kompilalasi hiba - csillaggal kezdod uzenetek elrejtese
https://hlmod.hu/viewtopic.php?f=10&t=18678
Oldal: 1 / 1

Szerző:  protoN [ 2014.12.26. 14:43 ]
Hozzászólás témája:  Kompilalasi hiba - csillaggal kezdod uzenetek elrejtese

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "HideMSG"
  7. #define VERSION "1.0"
  8. #define AUTHOR "putyin"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13.  
  14. register_plugin( "Hide Slash Commands", "1.0.0", "Kreation" );
  15. register_clcmd( "say", "CmdSay" );
  16. register_clcmd( "say_team", "CmdSay" );
  17.  
  18. g_msgid_SayText = get_user_msgid( "SayText" );
  19. }
  20. public CmdSay( id )
  21. {
  22. new szArg[192];
  23. read_args( szArg, charsmax( szArg ) );
  24. remove_quotes( szArg );
  25.  
  26. if( szArg[0] == '*' )
  27. {
  28. message_begin( MSG_ALL, g_msgid_SayText, _, id )
  29. message_end( );
  30. }
  31.  


Ez a plugin a csillaggal kezdodo uzeneteket kellene elrejtse, de nem leeht kompilalni:

Kód:
Error: Undefined symbol "g_msgid_SayText" on line 18
Error: Undefined symbol "g_msgid_SayText" on line 28
Error: Invalid expression, assumed zero on line 28
Error: Invalid expression, assumed zero on line 28
Error: Too many error messages on one line on line 28


Segitene valaki kijavitani?

Szerző:  RaZzoR [ 2014.12.26. 19:10 ]
Hozzászólás témája:  Re: Kompilalasi hiba - csillaggal kezdod uzenetek elrejtese

define után:
Kód:
new g_msgid_SayText

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/