[RESOLVED] sprintf problem ....
Code:
anyhelp on this one ? |
Re: sprintf problem ....
I'd suggest doing some introductory c++ work before jumping into writing a server plugin.
char *msg is only creating a pointer to a string, not a buffer to hold an actual string. And then as a bonus, it's uninitialized. Like a handle without a cup. And you're now pouring coffee on the floor. |
Re: sprintf problem ....
yh i figured it out later after some pain :P . finally got it to work using vsnprintf and va_list .
|
| All times are GMT -4. The time now is 07:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.