here is codding:
mob
verb
Download(F in Files)
if(F)
var/Alert=alert("Are you sure you want to download [F] its [length(F)] bytes?","-Download","Yes","No")
switch(Alert)
if("Yes")
usr<<ftp(F)
world<<"\red INFO:[usr] has downloaded [F]"
else if("No") usr<<"Canceled Downloading [F] : [length(F)] bytes"
i need something like:
mob
if(gmlevel = 5)
verb
Download(F in Files)
if(F)
var/Alert=alert("Are you sure you want to download [F] its [length(F)] bytes?","-Download","Yes","No")
switch(Alert)
if("Yes")
usr<<ftp(F)
world<<"\red INFO:[usr] has downloaded [F]"
if("No") usr<<"Canceled Downloading [F] : [length(F)] bytes"
and it says:
file down-upl.dm:22:error::empty type name (indentation error?)
file down-upl.dm:23:error::empty type name (indentation error?)
help plz !
P.S. a little not fitted in screen :]</<ftp></<ftp>
ID:168444
Oct 17 2005, 3:34 am
|
|
Ripiz wrote:
mob Well, this is giving you errors for a pretty obvious reason: That if() line belongs inside the verb, not outside. Of course, the = operator isn't valid in an if() either, and I think you're looking for either == or >= here--probably >= since obviously higher-level GMs should have the same ability. Or perhaps it would be <=, if you handle levels with 0 or 1 being highest, 2 the next highest, and so on. Lummox JR |
I need something like:
Error::
file down-upl.dm:22:error::empty type name (indentation error?)
file down-upl.dm:23:error::empty type name (indentation error?)
help please! !
P.S. a little not fitted in screen :]
Please use the