ayevdayev Posted February 26, 2011 Author Share Posted February 26, 2011 I want to make a Character Stats screen in my game.Here is my code:![](http://i835.photobucket.com/albums/zz271/ayevdayev/Error.png)Here is error I get when I try to use it:![](http://i835.photobucket.com/albums/zz271/ayevdayev/Error2.png)HELP PLEASE! :cheesy: Link to comment Share on other sites More sharing options...
Rithy58 Posted February 26, 2011 Share Posted February 26, 2011 I'm not sure if the command are correct but try this :Remove the parenthesis so like :```Label6.Caption = GetPlayerStat(Index, Stats.Strength) / 2```Sincerely,Rithy Link to comment Share on other sites More sharing options...
ayevdayev Posted February 26, 2011 Author Share Posted February 26, 2011 @Rithy58:> I'm not sure if the command are correct but try this :> > Remove the parenthesis so like :> ```> Label6.Caption = GetPlayerStat(Index, Stats.Strength) / 2> > ```> Sincerely,> RithyDidn't work, but thanks for the help. Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2011 Share Posted February 26, 2011 When it errors, click the debug button. What line does it error on? Link to comment Share on other sites More sharing options...
Rithy58 Posted February 26, 2011 Share Posted February 26, 2011 Debug it one at a time.First, what line did it highlight when it error?And work on one caption at a time. Only continue when one of it work.Sincerely,Rithy Link to comment Share on other sites More sharing options...
ayevdayev Posted February 26, 2011 Author Share Posted February 26, 2011 @Rithy58:> Debug it one at a time.> > First, what line did it highlight when it error?> > And work on one caption at a time. Only continue when one of it work.> > Sincerely,> RithyI tried the code that you gave me Label6.Caption = GetPlayerStat(Index, Stats.Strength) / 2 and it comes to this line when I choose debug: GetPlayerStat = Player(Index).Stat(Stat)in ModDatabase Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2011 Share Posted February 26, 2011 Should be myindex if you're doing it client side. Link to comment Share on other sites More sharing options...
ayevdayev Posted February 26, 2011 Author Share Posted February 26, 2011 @Sekaru:> Should be myindex if you're doing it client side.TY so much! Worked perfectly. Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2011 Share Posted February 26, 2011 Np xD. Link to comment Share on other sites More sharing options...
masa Posted February 26, 2011 Share Posted February 26, 2011 @ayevdayev:> I want to make a Character Stats screen in my game.> Here is my code:> =Error-> Here is error I get when I try to use it:> -Error2-> HELP PLEASE! :cheesy:Why not change the load button for a timmer? Would Be more comfortable Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now