ID:168444
 
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>
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"




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
<dm>
</dm> tags!
Ripiz wrote:
mob
if(gmlevel = 5)
verb
Download(F in Files)


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