• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help error on compiling this code
#1
Hi
i use this code to bind F keys ( Bind hotkey) .
guys i have error on compiling this code
pleas help me what is problem?

C++ Code
  1. void ExecHotkey(int vKey)
  2. {
  3. char connect_cmd[255];
  4. if (vKey == VK_F1)
  5. {
  6. //Console(0, V("connect_ext\n"));
  7. sprintf(connect_cmd, V("connect %s:%d\n"), 192.168.137.2, 27016);
  8. }
  9. }


Error:
error C2143: syntax error : missing ')' before 'constant

Thank you
  Reply
#2
(10-12-2012, 11:18)raminr63 Wrote: Hi
i use this code to bind F keys ( Bind hotkey) .
guys i have error on compiling this code
pleas help me what is problem?

C++ Code
  1. void ExecHotkey(int vKey)
  2. {
  3. char connect_cmd[255];
  4. if (vKey == VK_F1)
  5. {
  6. //Console(0, V("connect_ext\n"));
  7. sprintf(connect_cmd, V("connect %s:%d\n"), 192.168.137.2, 27016);
  8. }
  9. }


Error:
error C2143: syntax error : missing ')' before 'constant

Thank you

Ip should be given as a String "192.168.137.2" It tried to parse that number to 192 comma 168 comma 137 comma 2 -> Nope.avi
[Image: compiling.png][Image: aLKA8og_460sa.gif]
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 3,628 10-02-2013, 19:26
Last Post: koren30
  Help error when run mod mr.apple 9 6,065 09-24-2013, 21:49
Last Post: Nekochan
  Help need help?how to make plugins code hXnarutoXone 12 7,684 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,090 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,779 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,794 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,152 07-28-2013, 01:52
Last Post: First_Semyon
  Help COD mw3 Error Couln't load image 3_cursor3:s Paylgs 2 13,483 07-18-2013, 18:46
Last Post: Nekochan
  Mod Error! help please Brandeeno 2 3,752 07-11-2013, 21:06
Last Post: Brandeeno
  Help xkmod error Domino29 2 4,150 07-11-2013, 20:07
Last Post: Brandeeno

Forum Jump:


Users browsing this thread: 1 Guest(s)