Abril 05, 2014, 02:12:15 PM Ultima modificación: Abril 06, 2014, 12:56:10 PM por unixhacker2600
if mouse_check_button_pressed(mb_left) && distance_to_point(mouse_x,mouse_y)=0 //Check if click
{
if directory_exists("C:\My_Games\"+global.NewProjetName) //<--Aquí está el error
    {
    show_message("El nombre no está disponible");
    }
else
    {
    directory_create("C:\My_Games\"+global.NewProjetName); //<--Y aquí
   
    }
}

¿Qué error da? Así a primera vista sólo se me ocurre que global.NewProjetName sea un real. Además deberías crear antes el directorio My_Games.

Un saludo.

Lo que quiero es que genere un directorio con el nombre que tenga asignado global.NewProjetName
Ej.Si :
global.NewProjetName=Juego
que se cree el directorio "C:\My_Games\Juego"
Este es el error:
ERROR in
action number 1
of  Step Event
for object object0:

Error in code at line 3:
   if directory_exists("C:\My_Games\"+global.NewProjetName)
                                             ^
at position 44: Wrong type of arguments to +.

Como lo soluciono?

global.NewProjetName=Juego

Se te olvido por las comillas!
Porque la variable es del tipo string, osea:

global.NewProjetName = "Juego"
The next best thing to knowing something,
is knowing where to find it.