View Full Version : LoginIndex problem after reflection update..
Brandon
03-23-2011, 01:51 AM
The problem is the following code in the "Reflection/Players.Simba"
function R_IsPlayerInCombat: boolean;
var
MyPlayer, LoopCycle, LoopCycleStatus : integer;
isLogged : boolean;
begin
Result := false;
LoginIndex := SmartGetFieldInt(0, hook_static_LoginIndex); //Update LoginIndex
its at line "LonginIndex := SmartGetFieldInt(0,.............); //Update....
[Error] C:\Simba\Includes\reflection\./Core/Players.simba(104:14): Identifier expected at line 103
Compiling failed.
Zyt3x
03-23-2011, 01:53 AM
Pyro: Why even use "LoginIndex := blah" when there's R_LoggedIn?
Brandon
03-23-2011, 01:58 AM
Pyro: Why even use "LoginIndex := blah" when there's R_LoggedIn?
Who is Pyro... and I have no clue sir what u are speaking of.. but I just tried compiling a script I made and thats the error I get after it said update available.. and I downloaded that..
That code above is NOT in my script but its in Players.Simba in the reflection folder :S
Guessing Pyro is someone who updated it??
Zyt3x
03-23-2011, 01:59 AM
I'm referring to pyroryan which is the ref dev who added it
Brandon
03-23-2011, 03:20 AM
*sigh* Still broken... Couple of my friends says theirs is giving the same problem now... Why bother fixing what wasnt broken in the first place :S
Guess no botting tonight..
pyroryan
03-23-2011, 03:37 AM
Strange worked when I tested it. I guess it doesn't like updating LoginIndex. I just switched the var name, hopefully it'll work now. And Zyt3x, I work on three or four different bots. I really don't remember much about their functions. I'll look at that tomorrow morning/afternoon.
Edit:
Maybe I tested it before switching the variable name to LoginIndex? o.o
Edit 2:
Just tested the last commit and it worked. Compiled and function works.
Flight
03-23-2011, 04:27 AM
I'm getting the same error, I can't compile scripts nor run anything reflection-based atm. I'm just gonna comment out the whole function for now until it's sorted out, as I've never needed to use this before.
Smartzkid
03-23-2011, 04:35 AM
Broken for me as well, boys.
[Error] C:\Program Files (x86)\Simba\Includes\Reflection\./Core/Players.simba(104:14): Identifier expected at line 103
Brandon
03-23-2011, 04:38 AM
Guys Im not sure why.. but Now the simba updater is broken so if u try to autoupdate it will not autoupdate(never worked for me anyway same witht hat stupid DTM editor that doesnt open or save DTM's, oh well)..
Thing is I tried to manually update aswell but it still says none..
here is how I got it to work since Pyro said the commit works:
https://github.com/SRL/srl-reflection/blob/master/Core/Players.simba
Copy paste all of it into the player.simba overwriting everything that is already there...
compile your script and u will be fine.
Santa
03-23-2011, 04:44 AM
Guys Im not sure why.. but Now the simba updater is broken so if u try to autoupdate it will not autoupdate(never worked for me anyway same witht hat stupid DTM editor that doesnt open or save DTM's, oh well)..
Thing is I tried to manually update aswell but it still says none..
here is how I got it to work since Pyro said the commit works:
https://github.com/SRL/srl-reflection/blob/master/Core/Players.simba
Copy paste all of it into the player.simba overwriting everything that is already there...
compile your script and u will be fine.
Omg, I had the same problem.. but this fixed it. Thanks!! Rep+
Guys Im not sure why.. but Now the simba updater is broken so if u try to autoupdate it will not autoupdate(never worked for me anyway same witht hat stupid DTM editor that doesnt open or save DTM's, oh well)..
Thing is I tried to manually update aswell but it still says none..
here is how I got it to work since Pyro said the commit works:
https://github.com/SRL/srl-reflectio.../Players.simba
Copy paste all of it into the player.simba overwriting everything that is already there...
compile your script and u will be fine.
thanks man, saved me a major headache.
Zyt3x
03-23-2011, 07:34 AM
Why not use R_LoggedIn? :S
pyroryan
03-23-2011, 03:22 PM
Why not use R_LoggedIn? :S
"Fixed, involves me being an idiot. And mormonman, Zyt3x mentioned that as well. I'll look at that but for now a fast fix works.". -GitHub conversation.
Reasons: Late at night. Tired. Sleepy. 3 hour genetics homework. Quiz the next day. Needed a hot shower. Idiot drunks. Attack of the girls. Annoying girls. Girls/females failing to shut up. Drama.
Good enough?
Smartzkid
03-23-2011, 03:45 PM
Pics or didn't happen bro ;)
Fair enough though, it was barely even an inconvenience. Thanks for fixing it!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.