Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Switches ...

sbach

Member

Hello all.

I am sorry but i need some help in a script of netplay plus 1.7.

script :

Code:
     # System Update
     when /<10>(.*)<\/10>/
      return true if $1 == nil 
      return true if $1.match(/File|system|`/)
      eval($1) 
      $game_map.need_refresh = true
      return true
     
This script is in [NET] Network* and i want to use it because he can allow me to make global net switches and variables.
And when i make an event with a net global switch i have an error :

Code:
Line 901 [NET] Network*             cannot convert nil into script


Line 901 :
Code:
eval($1)

Can you suggest me what to do please.

Full script :

http://sb-creation.net/network.txt
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top