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

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-19-2015 , 17:30   Re: New API and Syntax
Reply With Quote #641

We need to call Chdata in here to read your response. The reaction should say enough.
Potato Uno is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 11-19-2015 , 21:04   Re: New API and Syntax
Reply With Quote #642

Quote:
Originally Posted by Wliu View Post
You forgot about the lengthy deprecation period and the major version bump that needs to happen before old code can be removed. Many servers are running old-style plugins that are no longer supported. Who are going to update those? Just saying "yeah, someone will fix them" isn't going to cut it.
OH WELL. Everyone of the plugins that I still support have gone 1.7 syntax.

If there's a will, there's a way. If those plugins really are supported and need someone to fix them up, they WILL get fixed up...

If nobody gives a shit about them, of course nobody will fix them up.
__________________
nergal is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-19-2015 , 21:48   Re: New API and Syntax
Reply With Quote #643

nergal just drop the subject. You aren't going to win, not a fucking chance. If the SM devs didn't care about breaking old plugins smx files wouldn't exist today.

The parentheses requirement for view_as() was already an awful enough of a breakage.
Potato Uno is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 11-19-2015 , 22:58   Re: New API and Syntax
Reply With Quote #644

Quote:
Originally Posted by nergal View Post
OH WELL. Everyone of the plugins that I still support have gone 1.7 syntax.

If there's a will, there's a way. If those plugins really are supported and need someone to fix them up, they WILL get fixed up...

If nobody gives a shit about them, of course nobody will fix them up.
Just because your plugins support 1.7 doesn't mean everyone else's does. It's not just about you.

Ok, that's it from me. Following Potato Uno's advice here and dropping the subject.
__________________
~Wliu

Last edited by Wliu; 11-19-2015 at 23:01. Reason: Typo
Wliu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 11-20-2015 , 13:26   Re: New API and Syntax
Reply With Quote #645

Quote:
Originally Posted by nergal View Post
OH WELL. Everyone of the plugins that I still support have gone 1.7 syntax.

If there's a will, there's a way. If those plugins really are supported and need someone to fix them up, they WILL get fixed up...

If nobody gives a shit about them, of course nobody will fix them up.
Should I port this to 1.7 syntax?
And who is gonna port Zombie:Reloaded, UMC or SourceBans etc. ?
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.

Last edited by KissLick; 11-20-2015 at 13:27.
KissLick is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-20-2015 , 15:28   Re: New API and Syntax
Reply With Quote #646

Quote:
Originally Posted by Potato Uno View Post
The parentheses requirement for view_as() was already an awful enough of a breakage.
view_as was only ever documented as requiring parenthesis, compiling without them was a bug that some silly people kept promoting after being told it was being fixed.
__________________
asherkin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-20-2015 , 16:58   Re: New API and Syntax
Reply With Quote #647

I still cant figure how someone would look at a view_as statement without parenthesis and come to the conclusion it's ok.

float val = view_as<float>someval; == wrong
float val = view_as<float>(someval); == right
__________________
Neuro Toxin is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 11-20-2015 , 17:07   Re: New API and Syntax
Reply With Quote #648

Quote:
Originally Posted by Neuro Toxin View Post
I still cant figure how someone would look at a view_as statement without parenthesis and come to the conclusion it's ok.

float val = view_as<float>someval; == wrong
float val = view_as<float>(someval); == right
Probably because before, you had to do this:

Code:
new Float:val = Float:someval;
and not this:

Code:
new Float:val = Float:(someval);

or

new Float:val = Float(someval);
Drixevel is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-20-2015 , 17:31   Re: New API and Syntax
Reply With Quote #649

Quote:
Originally Posted by r3dw3r3w0lf View Post
Code:
new Float:val = Float(someval);
Is actually:
Code:
new Float:val = float(someval);
WildCard65 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-20-2015 , 18:11   Re: New API and Syntax
Reply With Quote #650

I'm use to casting in other langs. And can see if someone only used source pawn how they could get tricked between syntax.

Edit: lets use the new syntax here.

float val = float (someval);

Wait a sec. That's not right lol
__________________

Last edited by Neuro Toxin; 11-20-2015 at 18:14.
Neuro Toxin 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 00:53.


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