Fandom

武装突袭 Wiki

Code vs. Strings

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

Since Armed Assault the convention to use quotation marks for Strings and curly braces for Code has been formalised. Exceptions, however, do exist: for example bindKey (VBS2), onMapSingleClick and onDoubleClick. When scripting '...', "..." or ""..."" generally indicates data type String, and {...} indicates data type Code.

In OFP many language constructs (including forEach, if, while) use the concept of "code strings". Code is passed as a string to them and they interpret it as code if they wish. Since version 1.85, string constants can be written in two ways: Using double quotes (like "Hello") or curled braces (like {a=a+1}).

A partial list of commands which expect code as parameter is provided at Code Commands.

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

更多维基

随机维基