Oh god, this is amazing.
This whole debate is trivial and stupid.
Can we stop this dumb debate please guys.
Creator of E2 Function System (udf) and E2 Scope System (Beta)
STRP Development Blog: Blog.SpaceTownRP.com
I will fight until DEATH.
Also, I like having debates.
Divran has helped me fix the Duplicator bug.
With that I reckon this is stable can we get some proper testing done?
I will be back tomorrow, If i can get some bug reports posted I can get them fixed ASAP.
Creator of E2 Function System (udf) and E2 Scope System (Beta)
STRP Development Blog: Blog.SpaceTownRP.com
How does local variables working with functions exactly?
like function number test(AThing){AThing*2,return AThing}
Is variable AThing are local only to function scope?
Since something bad can happen if it isnt, like.
AThing=2
OtherThing=test(AThing)
print(AThing)
With local variables 2 should be printed out, but are they local there?
I might not be clear.
Are variables which used in functions as arguments to process local to function? And if they change there, won't they change some persistent or temporarily variable
They seems to be, but questions still out there, i just want a confirmation.
Also, how long it before it will be committed to official wire?
I already have it on server tho
Awesome work.
E2 engineer.....
3D is a official part of my art......
Well udf's have there own environments.
They can not access variables defined outside of the function.
How ever functions do have complete access to the Global Scope and the Persistent Variables as well as Inputs and Ouputs of course.
Creator of E2 Function System (udf) and E2 Scope System (Beta)
STRP Development Blog: Blog.SpaceTownRP.com
PHP Code:function number test(){
Test=1
if(Test){
return 1
}
else{
return 0
}
}
print(test():toString())
This code will return nill.
I think it is error with scopes, because if return outside if or else it will return something, otherwise it is nill.
Please fix it, it was driving me nuts, because i was trying to find error in my code.
E2 engineer.....
3D is a official part of my art......
Your obviously using an old copy of the patch.
The patch file has updated about 10 times a day all weak.
The final rev is done revert your svn and re-download patch.
If you still have the problem please post the error and the E2.
Creator of E2 Function System (udf) and E2 Scope System (Beta)
STRP Development Blog: Blog.SpaceTownRP.com
I am pretty sure i have latest, plus this is whole code which gives of a error.
Just try it, I am pretty sure it will return nill for anyone who uses this new awesome extension.
I just reinstalled patch, just in case if it have changed in this 20 minutes since i updated it.
Problem still there. And it didn't go anywhere.
To see problem for your self use code I provided a post above, this is whole code.
Please-please fix it.
Last edited by Ksax; 3 Weeks Ago at 06:52 AM.
E2 engineer.....
3D is a official part of my art......
Bookmarks