• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Unknown Value Error

tibiamatatan

New Member
Joined
Jun 25, 2017
Messages
3
Reaction score
0
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 (À”¦l) 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).

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.

The Image of The Error Is
Sin_t_tffulo.png


Thanks!

Link to script: Action - Offline Training for 8.60
 
Last edited:
Back
Top