Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: miguelfanclub on December 01, 2018, 08:06:55 AM

Title: [BUG] Seting a global variable with the same name as local wont work
Post by: miguelfanclub on December 01, 2018, 08:06:55 AM
It simply doesnt detect the difference at UI level, both of the variables are changed to local or global depending on the last one you set on the UI of the action.

Talking about the Set Int Value Action
Title: Re: [BUG] Seting a global variable with the same name as local wont work
Post by: jeanfabre on December 03, 2018, 01:17:58 AM
Hi,

 yes, you need to enforce that local variables and global variables be named differently. I usually add a weird character on globals so that I alwasy know it's a global at a glance. like "#My Variable Name"

Bye,

 Jean
Title: Re: [BUG] Seting a global variable with the same name as local wont work
Post by: Broken Stylus on December 04, 2018, 06:42:04 AM
Tip:

Say you have a string variable called "pasta".
Local version syntax : pasta
Global version syntax : Pasta