This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative.
59: if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
60: set .@l, getstrlen(""+.@num);
61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
* 62: set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
64: }
65: return .@num$;
[Warning]: script error in file 'npc/custom/meus/tzeny.txt' line 62 column 39
This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative.
59: if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
60: set .@l, getstrlen(""+.@num);
61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
* 62: set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
64: }
65: return .@num$;
pow in the future not will be use, but if i change
i got this error when i use @reloadscript
This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative. 59: if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); 60: set .@l, getstrlen(""+.@num); 61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { * 62: set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; 64: } 65: return .@num$; [Warning]: script error in file 'npc/custom/meus/tzeny.txt' line 62 column 39 This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative. 59: if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); 60: set .@l, getstrlen(""+.@num); 61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { * 62: set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; 64: } 65: return .@num$;
pow in the future not will be use, but if i change
pow(10,.@i+1) / pow(10,.@i) -> (10**.@i+1) / (10**.@i)
i dont got error but not show correct zeny in script.
Share this post
Link to post
Share on other sites