Raised This Month: $ Target: $400
 0% 

Using (un-identified) blocks inside functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
commonbullet
Veteran Member
Join Date: Oct 2005
Old 04-18-2006 , 10:46   Using (un-identified) blocks inside functions
Reply With Quote #1

I didn’t see it in documentation, and I haven’t seen that in any plugin. It doesn’t show any warnings in compilation, so I suppose it works fine for cleaning variables that will not be used in the rest of function.
I know they can always be broken into two or more functions, I just wondered if it’s ok in Pawn…

Crap example:
Code:
test(){     new line[72]     {         new filepath[67], len         get_configsdir( filepath , 66 )         format(filepath , 66 , "%s/maps.ini", filepath)         read_file (filepath, 2, line, 71, len)     }     // […] }
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
 


Thread Tools
Display Modes

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 05:04.


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