angelofdark3 Posted March 17, 2009 Author Share Posted March 17, 2009 i can call a varibale in text with & qqq &BUthow can i call the whole number?i mean:i make xxx + 5call & qqq & it tells me 5then again +5call & qqq & it tells me 5 agianhow can i make it 10 ? Link to comment Share on other sites More sharing options...
cheatking Posted March 17, 2009 Share Posted March 17, 2009 qqq = qqq + 5 Link to comment Share on other sites More sharing options...
angelofdark3 Posted March 17, 2009 Author Share Posted March 17, 2009 ok thxbut how can i get this in text ?because when i call & xxx & it always tell me the addnumber 5when i repeat xxx = xxx + 5 three times it must be 15so i want the FULL addnumber of xxx Link to comment Share on other sites More sharing options...
angelofdark3 Posted March 17, 2009 Author Share Posted March 17, 2009 nobody has an answer ????pls hlp =( Link to comment Share on other sites More sharing options...
Admiral Refuge Posted March 17, 2009 Share Posted March 17, 2009 Dim xxx'value is garbagexxx = 5'value is now 5xxx = xxx + 5'value is now 10xxx = xxx + 5'value is now 15If you & xxx &, it should display 15 Link to comment Share on other sites More sharing options...
angelofdark3 Posted March 18, 2009 Author Share Posted March 18, 2009 yes but when i call again the sub it must be 30 but it is 15 … Link to comment Share on other sites More sharing options...
Admiral Refuge Posted March 18, 2009 Share Posted March 18, 2009 Put a Call PlayerMsg before and after each incriment, that way you can see what the variable is at each step(eg:_Dim xxxxxx = 5Call PlayerMsg(index, "var is " & xxx & " okay", 1)xxx = xxx + 5Call PlayerMsg(index, "var is " & xxx & " okay", 1)xxx = xxx + 5Call PlayerMsg(index, "var is " & xxx & " okay", 1)_ Link to comment Share on other sites More sharing options...
angelofdark3 Posted March 18, 2009 Author Share Posted March 18, 2009 the only problem is after this:Dim xxxxxx = 5Call PlayerMsg(index, "var is " & xxx & " okay", 1)xxx = xxx + 5Call PlayerMsg(index, "var is " & xxx & " okay", 1)xxx = xxx + 5Call PlayerMsg(index, "var is " & xxx & " okay", 1)xxx return to 0i want to stay on 15and when i repeat this i want to have it 30 Link to comment Share on other sites More sharing options...
Admiral Refuge Posted March 18, 2009 Share Posted March 18, 2009 @angelofdark3:> the only problem is after this:> > Dim xxx> xxx = 5> Call PlayerMsg(index, "var is " & xxx & " okay", 1)> xxx = xxx + 5> Call PlayerMsg(index, "var is " & xxx & " okay", 1)> xxx = xxx + 5> Call PlayerMsg(index, "var is " & xxx & " okay", 1)> > xxx return to 0> > i want to stay on 15> and when i repeat this i want to have it 30If sadscript supports global variables (look up the syntax for it), then just have xxx have the value equal to zero outside the function. Link to comment Share on other sites More sharing options...
angelofdark3 Posted March 19, 2009 Author Share Posted March 19, 2009 yes it rturns zero if its ouside die functionhow can i change that ? 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