Raised This Month: $51 Target: $400
 12% 

String initialization


Post New Thread Reply   
 
Thread Tools Display Modes
BAILOPAN
Join Date: Jan 2004
Old 09-07-2007 , 21:59   Re: String initialization
Reply With Quote #11

assume that functions can't return strings in SourceMod. the syntax might be technically possible if you figure it out, but support for it is very limited. it's much better to pass in a string buffer as a parameter.

note that publics and natives can never return arrays. returning arrays is limited to stocks and private functions.
__________________
egg
BAILOPAN is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 09-07-2007 , 22:42   Re: String initialization
Reply With Quote #12

PHP, JavaScript and VB are languishes that any variable can be any value....
And they are the easiest languishes I know too :O
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
BAILOPAN
Join Date: Jan 2004
Old 09-08-2007 , 00:20   Re: String initialization
Reply With Quote #13

Those are all very different languages with very different paradigms. To understand Pawn's design you need to have a background in C. It is based on raw memory manipulation rather than complex structures such as objects which have lifetimes and reference counts.
__________________
egg
BAILOPAN 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 14:10.


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