Raised This Month: $ Target: $400
 0% 

[TUT] Organizing Code for Beginners


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nergal
Veteran Member
Join Date: Apr 2012
Old 03-07-2015 , 07:51   Re: [TUT] Organizing Code for Beginners
Reply With Quote #5

Quote:
Originally Posted by WildCard65 View Post
Well, try porting 8000 lines of code over to pure 1.7 syntax. Not even 50% done yet.
I did that in 2 minutes

first replace ALL with
"new Float:" -> "float "
"new bool:" -> "bool "
"decl String:" -> "char "
"new String:" -> "char "
"new Handle:" -> "Handle "
"Action:" -> "Action "
Then finally, "new" -> "int"

That part handles the variable declarations, for function parameters...

"&Handle:" -> "Handle &"
so on with the referenced variables.

Strings must be turned to char manually though along with int being added to the ints.

The rest to use methodmaps should take the rest of the time.
__________________

Last edited by nergal; 03-07-2015 at 07:52.
nergal is offline
 



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:34.


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