Raised This Month: $ Target: $400
 0% 

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-01-2015 , 01:56   Re: New API and Syntax
Reply With Quote #531

OK, I will do it.
Off-Topic:I hope will support the float array and char with enum struct in the next SourcePawn official version ;)
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-01-2015 , 04:36   Re: New API and Syntax
Reply With Quote #532

I was reading a majority of this thread to decide on whether 1.6 or 1.7 syntax is good for two plugins I'm about to write, and all the bugs in 1.7 syntax that BAILOPAN asked us to file are somewhat scary.

Is it safe at all to use 1.7 syntax or should I still use 1.6?
Potato Uno is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-01-2015 , 04:51   Re: New API and Syntax
Reply With Quote #533

1.7 all the way.
__________________
Neuro Toxin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-05-2015 , 06:03   Re: New API and Syntax
Reply With Quote #534

Scratch that, I'm now a total convert to the new syntax. Good bye old awful syntax. Loving the new syntax so far.
Potato Uno is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 07-05-2015 , 14:14   Re: New API and Syntax
Reply With Quote #535

Hey SM devs, if it's not too much trouble, can I request a methodmap for stuff that uses Address ?

example - LoadFromAddress(Address:addr, NumberType:size)

can be...
PHP Code:
Address memadd = new Address();
memadd.Load(12); 
__________________
nergal is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-05-2015 , 14:21   Re: New API and Syntax
Reply With Quote #536

That really doesn't seem useful, Addresses are not Handles for one.
__________________
asherkin is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 07-05-2015 , 17:20   Re: New API and Syntax
Reply With Quote #537

Quote:
Originally Posted by asherkin View Post
That really doesn't seem useful, Addresses are not Handles for one.
Why do they have to be Handles? Can't Addresses be their own nullable types?
__________________
nergal is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-05-2015 , 18:10   Re: New API and Syntax
Reply With Quote #538

Quote:
Originally Posted by nergal View Post
Why do they have to be Handles? Can't Addresses be their own nullable types?
Why do you need a concept of address/reference/pointer? Please explain.
klippy is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-05-2015 , 18:34   Re: New API and Syntax
Reply With Quote #539

I would love to have the ability to do something like
PHP Code:
stock BindConVarNum(Handle:convar, &numVariable); 
to keep cached convar values up to date.

But this can be done only with some kind of pointers... :-(

Last edited by KissLick; 07-05-2015 at 18:34.
KissLick is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-05-2015 , 20:39   Re: New API and Syntax
Reply With Quote #540

Quote:
Originally Posted by KissLick View Post
I would love to have the ability to do something like
PHP Code:
stock BindConVarNum(Handle:convar, &numVariable); 
to keep cached convar values up to date.

But this can be done only with some kind of pointers... :-(
You can use myConVar.IntValue though.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword 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 12:42.


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