Dynasty Posted December 1, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Share Posted December 1, 2013 Hi i have a doubt about Account variable, if i not set it a var it means that the var that i put in a conditional it = to 0? ex: if(var == 0) mes "dfasdf"; close; without setting before? Quote Link to comment Share on other sites More sharing options...
Patskie Posted December 1, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share Posted December 1, 2013 Yea. You can also set var = 0 in the first place. Quote Link to comment Share on other sites More sharing options...
Dynasty Posted December 1, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted December 1, 2013 (edited) Set it like it was a C languague?Ex:Oninit:Var = 0End;If(var = 0)Mes "fdsafds";Close;? Edited December 1, 2013 by Dynasty Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 1, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted December 1, 2013 recently just explained that variable cant be remove by using the way you shown above.. it cant be done ...with your way.. the script is required to attach to a player when try to clear the variable since the variable is player based. althought you can try clear it from the SQL table, but this required all players to logoff before you can do so.. Quote Link to comment Share on other sites More sharing options...
Dynasty Posted December 1, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted December 1, 2013 recently just explained that variable cant be remove by using the way you shown above.. it cant be done ...with your way.. the script is required to attach to a player when try to clear the variable since the variable is player based. althought you can try clear it from the SQL table, but this required all players to logoff before you can do so.. sorry but i dont get it D;! Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted December 3, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted December 3, 2013 if(!xyz) mes "Variable xyz is empty or never been used before."; else mes "Variable xyz contains "+xyz; close; Quote Link to comment Share on other sites More sharing options...
Dynasty Posted December 4, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted December 4, 2013 if(!xyz) mes "Variable xyz is empty or never been used before."; else mes "Variable xyz contains "+xyz; close; Ok... now i get it thk Quote Link to comment Share on other sites More sharing options...
Question
Dynasty
Hi
i have a doubt about Account variable, if i not set it a var it means that the var that i put in a conditional it = to 0?
ex:
without setting before?
Link to comment
Share on other sites
6 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.