Jump to content

Question

Posted

Hi, I wish my @storage command to check if a certain variable has a value of 1, if it does, it allows the usage of @storage, and if it has a value of 2, it won't allow its usage. i'm not very good with source coding, I think its related to source coding.

Thank you /kis

2 answers to this question

Recommended Posts

Posted

this can be done via script

eg


-	script	Storecheck	-1,{
OnStoreage:
	if(.var > 1){ end;
	} else { openstorage; }
end;
OnInit:
	bindatcmd("storage"	,"Storecheck::OnStoreage",0,99);
	bindatcmd("s"		,"Storecheck::OnStoreage",0,99);
end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...