Raised This Month: $ Target: $400
 0% 

Passing a string in function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-11-2017 , 02:19   Re: Passing a string in function
Reply With Quote #1

It was one of the problems. Compiler does not know the size of team param(unless it's cleary specified in the header - team[32] or whatever) and will issue a warning:
Code:
warning 224: indeterminate array size in "sizeof" expression (symbol "")
In certain situations this could lead to a crash or unwanted behaviour.
__________________

Last edited by HamletEagle; 03-11-2017 at 02:23.
HamletEagle is offline
Reply



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