please
please
Last edited by mario_kn15; 07-18-2013 at 02:53 PM.
Which line is the one giving the error? I'm on my phone at the moment so can't tell.
<3
Originally Posted by Eminem
please name your variables + procedures more with more intention :S also use standards?
your using function parameters wrong putting booleans where integers are supposed to be.
your putting semicolons in procedure parameters.
your assigning booleans to integers. you cant set a integer to false
you have internal errors. aka your assigning in boolean statements(if, untils etc) (using :=) instead of (=)
Last edited by Kasi; 07-14-2013 at 07:16 PM.
I fixed it, you can delete this thread thanks anyway
For the sake of learning I would like to point out that in most programming languages and when using the Simba variable type 'variant' it is possible to use an integer as a Boolean or Boolean as an integer.
In some other programming languages a value of '0' or '-1' represent 'false' while numbers above 0 will represent 'true'. In Simba however, only a value of '0' will return false when used in place of a Boolean.
Here is a quick example to help aid understanding. If you are a programmer yourself, see if you can correctly guess what the output will be.
Simba Code:program new;
var
i: variant;
begin
i := 1;
if (i) then
writeln ('A');
if (i = true) then
writeln ('B');
i := 0;
if (i) then
writeln ('C');
if (i = true) then
writeln ('D');
i := -1;
if (i) then
writeln ('E');
if (i = true) then
writeln ('F');
i := 129632198321;
if (i = true) then
writeln ('G');
if (i) then
writeln ('H');
if (i <> false) then
writeln ('I');
i := false;
if (i = 0) then
writeln ('J');
end.
And our results:
Simba Code:A
B
E
F
H
I
J
Public Scripts Tutorials Extras [07] AutoSeller (trades) Graphic Paint 1,000,000 GP [07] EdgeYews BotWatchâ„¢ (MicroPaint) [07] MinimapBuilder Be a Sneaky Bastard
For the sake of learning, yeah you can "use" an integer as a boolean or vise versa e.g BooleanX := not(IntegerY = 0);. but you are confusing pascal script with other languages. The variant datatype is a completely different datatype in pascal script. it takes on the characteristics of other datatypes such as booleans / integers / strings etc. so speaking from a more in depth view. booleans can not directly be assigned to integers in the same way integers cannot directly be assigned to booleans e.g BooleanX := 1; wouldnt work. in other languages you would be correct, but from a Pascal Script sense, in which the op posted, you are wrong. Kudos for explaining Variants regarding integers, booleans and doubles.
Where did you get that script. We don't allow it on our forum.
Working on: Tithe Farmer
Is that really all it takes to consider a script obfuscated? Using the formatter extension and then a replacement of the constants would make it look just like any other script here as far as I can tell.
'Officially' for learning purposes. Unofficially to allow for ease of script obfuscation, privatization, and selling (although I DON'T think that was the original desire =/). However, as an open source community, anything public must also be open source and easily readable.
My Outdated ScriptsEdgeville Log Cutter | Edgeville AIO Jewelry | AIO Pickpocketer | Urn Activator | Slayer Tower | Slaying KuradalMy Working Scripts: Tutorials:Function Pointers and Why You Should Care! | Forms and Saving Settings | The Magic Behind Programming Tutorial | Recursive Recursion
It is allowed to obfuscate scripts or sell scripts. You got copyright on what you wrote. But, it is not allowed on this forum.
Working on: Tithe Farmer
There are currently 1 users browsing this thread. (0 members and 1 guests)