'LinKin Posted June 15, 2014 Posted June 15, 2014 Hello, Is there any limit when setting a player's element data when working with strings? I mean something like this: setElementData(thePlayer, "myDataKey" longAssString) The string can be quite long! It's storing the nicknames that a player has used. On average, 50 nicknames would be 650 characters long! Need a clanwar script? Click here! Do you want some free scripts for your DD server? Visit my website.
xXMADEXx Posted June 15, 2014 Posted June 15, 2014 As far as I know there isn't. I don't think there would be, but if there is you could just use a table. The Ultimate Lua Tutorial! | MTA PHP SDK
ixjf Posted June 15, 2014 Posted June 15, 2014 (edited) There was a 128-char limit for the data name or value, before. If I recall correctly, it was removed already since it was useless. Other than that, there should be no limits. Edited June 15, 2014 by Guest I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
'LinKin Posted June 15, 2014 Author Posted June 15, 2014 Okay. Anyway I've used a table since I'd like to display how many nicknames a player has had. Thank you Need a clanwar script? Click here! Do you want some free scripts for your DD server? Visit my website.
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