Thread Rating:
  • 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 4,015 10-02-2013, 19:26
Last Post: koren30
  Help error when run mod mr.apple 9 6,631 09-24-2013, 21:49
Last Post: Nekochan
  Help need help?how to make plugins code hXnarutoXone 12 8,535 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,308 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,124 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,665 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,633 07-28-2013, 01:52
Last Post: First_Semyon
  Help COD mw3 Error Couln't load image 3_cursor3:s Paylgs 2 14,280 07-18-2013, 18:46
Last Post: Nekochan
  Mod Error! help please Brandeeno 2 4,055 07-11-2013, 21:06
Last Post: Brandeeno
  Help xkmod error Domino29 2 4,449 07-11-2013, 20:07
Last Post: Brandeeno

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.