URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       1fx. Forums
  HTML https://1fx.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Development.
       *****************************************************
       #Post#: 79--------------------------------------------------
       it's still me :D
   DIR By: justy
       Date: August 4, 2010, 4:44 pm
       ---------------------------------------------------------
       Oi Oi boe and 1fx members, i need help  ::)
       In my mod, edited from 0.7 source, i have added comp mode
       for scrim, and made almost like 2k3 (almost).
       When i put comp mode on, it show a message like : "Compmode
       enabled, Gametype = blabla, Scorelimit = ..., Timelimit = ...,
       To start the 1st round, you must restart the map! , etc and when
       i restart the map, the scrim is started, but this start message
       is my problem  :-\
       So, when i write with trap_SendServerCommand( -1,
       va(cp\"message")); , the message is shown like 5-6 secs so you
       don't have enough time for reading ! But if i use
       trap_SendServerCommand( CS_GAMETYPE_MESSAGE, va("%i,@message"));
       , i can't write more than one line for the message or it bugs
       and you cannot see the message.
       If you can tell me how i can write more than one line with
       CS_GAMETYPE_MESSAGE, or if you can tell me an other way ( i
       tryed with only va("message"); like motd ) i would be very happy
       :D
       
       Thx for reading this message and see you soon :)
       juSty.
       #Post#: 80--------------------------------------------------
       Re: it's still me :D
   DIR By: BoeMan
       Date: August 4, 2010, 5:02 pm
       ---------------------------------------------------------
       --- Quote ---
       > ( CS_GAMETYPE_MESSAGE, va("%i,@message")); , i can't write
       more than one line for the message or it bugs and you cannot see
       the message.
       --- End Quote ---
       How does it bug? Post the actual line where it won't show. You
       could just use '\n' as in new line in it.
       You need to add more code mate if you want an accurate answer.
       Use the code or quote BB tags for it.
       #Post#: 81--------------------------------------------------
       Re: it's still me :D
   DIR By: justy
       Date: August 5, 2010, 6:00 am
       ---------------------------------------------------------
       Ok np Boe, here is my code:
       --- Code ---
       trap_SetConfigstring( CS_GAMETYPE_MESSAGE,
       va("%i,@^3*^~C^Ho^qm^+p^7etition mode enabled!^3*\n \n^MScrim
       Settings: \n ^3[^7Gametype^3]  ^M%s %s \n ^3[^7Scorelimit^3]
       ^M10 \n ^3[^7Timelimit^3]  ^M0 \n ^3[^7Specs locked^3]  ^M%s \n
       ^3[^7Auto swap^3]  ^MYes\n\n^MRestart map to start the first
       round!\n", level.time + 5000 g_gametype.string, "mp_shop",
       LockedSpecs ));
       --- End Code ---
       So i wrote this but with this way  "trap_SetConfigstring(
       CS_GAMETYPE_MESSAGE, va", i can't write more than one line,
       whereas i want the message on differents lines, like:
       -1st line = CompMode on
       -2nd line = Scrim Settings:
       -3rd line = [Gametype] %s (g_gametype.string) ... etc
       I don't wanna use "trap_SendServerCommand( -1, va(cp\" way cause
       the message is shown only some seconds and you don't have enough
       time to read :/.
       I don't know if there are other ways so i ask you if you know
       how to use my code with many lines or if you know an other way.
       Thanx for your answer,
       juSty.
       #Post#: 82--------------------------------------------------
       Re: it's still me :D
   DIR By: BoeMan
       Date: August 6, 2010, 3:46 am
       ---------------------------------------------------------
       As I don't have time to try it out myself, what about displaying
       the code a x number of times? Maybe with use of a variable which
       will be your counter.
       *****************************************************
       Page 1 of 1