KirieZ Posted December 17, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 12/16/12 Last Seen: September 25, 2024 Share Posted December 17, 2012 Hello everyone, today I was working on a script and get stuck on the following problem: I need to save values on player account (something like 100 values), I noticed that " setarray #values[0], 1, 2, 3; " don't work. So, what can I do? thanks in advance. sorry my bad english Quote Link to comment Share on other sites More sharing options...
Euphy Posted December 17, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted December 17, 2012 You can't create permanent character or account arrays. There's a limit on the total number you can use (or your server will lag), so you should definitely try reducing the number - either using bit variables, if possible, or storing multiple values inside a string (using implode/explode). 1 Quote Link to comment Share on other sites More sharing options...
KirieZ Posted December 17, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 12/16/12 Last Seen: September 25, 2024 Author Share Posted December 17, 2012 (edited) Thanks Euphy, I never thought of using a string, I will see what I can do. @edit: I'm new here, is there a button to mark the topic as solved? Edited December 17, 2012 by KirieZ Quote Link to comment Share on other sites More sharing options...
Euphy Posted December 17, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted December 17, 2012 (edited) is there a button to mark the topic as solved? Only moderators can. xD Edited December 18, 2012 by Euphy I stand corrected. Quote Link to comment Share on other sites More sharing options...
ToiletMaster Posted December 18, 2012 Group: Members Topic Count: 76 Topics Per Day: 0.02 Content Count: 276 Reputation: 7 Joined: 08/11/12 Last Seen: January 26, 2018 Share Posted December 18, 2012 is there a button to mark the topic as solved? Only moderators can. xD Euphy, i believe that if you edit your first post, you can put the solved tag by yourself xD i did it with my threads a few times already xD 1 Quote Link to comment Share on other sites More sharing options...
Question
KirieZ
Hello everyone, today I was working on a script and get stuck on the following problem:
I need to save values on player account (something like 100 values), I noticed that " setarray #values[0], 1, 2, 3; " don't work.
So, what can I do? thanks in advance. sorry my bad english
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.