Hey there guys, Im having a issue with a script for offline training. For some strange reason, a players storage value randomly becomes completely empty or has a weird characters like "ÊÄ" and when that happens - this script wont function properly/let the player login due to the value not being -1 or between the value of 1-720, so Im trying to figure out how to check if that value is -1 or any other foreign value between 1-720, then setTime(cid, 720).
I dont know why the players will sometimes get an empty storage or foreign characters with this system, but hopefully we can figure out how to check if its any other value than between the numbers 0-720 and set the value for setTime.
Thanks!
Link to script: Action - Offline Training for 8.60
Bump!
Code:
function OfflineTraining_initialize(cid)
if(OfflineTraining_getTime(cid) == -1) then
OfflineTraining_setTime(cid, 720)
OfflineTraining_setLogoutTime(cid) -- block problem with first login 'add time'
end
end
I dont know why the players will sometimes get an empty storage or foreign characters with this system, but hopefully we can figure out how to check if its any other value than between the numbers 0-720 and set the value for setTime.
Thanks!
Link to script: Action - Offline Training for 8.60
Bump!
Last edited by a moderator: