Raised This Month: $ Target: $400
 0% 

Passing a string in function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-10-2017 , 19:59   Re: Passing a string in function
Reply With Quote #8

The destination buffer needs to have a size if I'm not mistaking. I'm on my phone and can test it right now, but I'm pretty sure I had the same problem once and fixed it like that. Try it. I'm 99% sure that's the problem.

//edit: lol, I just noticed... The "team" string in the function header has the same name with the "team" integer down below, so you're basically using "copy" on an integer. This is why szTeam and iTeam style names should be used.
__________________

Last edited by OciXCrom; 03-10-2017 at 20:03.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode