|
第一步:
1 y8 M. z, s9 n! n% Otreenode item = parnode(1);8 p$ H' }! [- I# |5 |
treenode current = ownerobject(c);# x& x+ [- o& O$ J
treenode source=node("/source",model());
2 w* }7 a& k- g* H3 H1 Kint port = parval(2);% w1 m5 q k" `( W& a
if(# t" q; r2 D( z2 Q; ]; F
content(current)>=20
0 W$ _( D* U j)- \2 z" {- ]' {1 ]# K8 E
sendmessage(source,current,1,0,0);
- E+ \8 J- C4 h3 }/ \, q9 Jreturn 1;
7 N3 `: |! g* l; ?第二步:
" y$ B0 t: `/ T; M: O/**Custom Code*/3 O: L% R. X% Q' s( _. e. k
treenode item = parnode(1);, w9 R& w9 Q F8 m+ ]8 i
treenode current = ownerobject(c);5 O2 B3 X4 `& E [/ Y5 H
treenode source=node("/source",model());
k0 _2 j# l9 o; gint port = parval(2);
! _ ?0 q. i# Q' f3 zif(- r8 M8 S' |. U$ b" q0 f% ]# O
content(current)<5
+ t5 z) ?7 s8 O)8 }, H# |7 U/ N6 E
sendmessage(source,current,2,0,0);& m8 x! g4 G2 L5 J+ V
return 5;
2 i6 e4 {9 e3 I5 M1 R第三步:
' f( h6 E; Q5 Y' I
6 k4 v5 e/ Y, c! k- j1 K; F+ x/**Custom Code*/
& H+ K( C, d; X0 A# Z v( Ntreenode current = ownerobject(c);# q% B" x, I, I: s: m
unsingned int uservalue=(unsigned int) msgparam(1);2 F! X* a8 M, k2 w
switch(uservalue){
0 n6 B& E0 _( D! ^& ~1 @8 h case 1:closeoutput(current);break;
/ j- z3 [' ?& D+ b case 2 penoutput(current);break;
& Y' ^! j* e' @; @' z" \}: M* d" w: k9 f2 R
最后系统报错是第三步,说是没有定义uservalue:
( ?$ Z2 M2 V s
1 q) |; N5 ]" O f" jline 3 unknown variable "unsingned"
; s; p6 [9 N/ ?: |( L2 }, g5 }, [5 Q4 b; o
line 3 syntax error, unexpected type identifier, expecting ';'
- N3 _, z6 A7 P I& C) KCould not finish parsing because of previous errors.
$ _1 l" w1 |# ?6 H
2 J! |& o1 r3 O) m9 K, G9 t" i请问各位大大这是怎么一回事.... |
|