0 registered members (),
1,209
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Stop all Functions
[Re: keilyn3d]
#294788
10/21/09 08:33
10/21/09 08:33
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
never tested it but this should work
proc_kill(16); your_func();
"empty"
|
|
|
Re: Stop all Functions
[Re: Rei_Ayanami]
#294903
10/21/09 20:36
10/21/09 20:36
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
just try it white 7.8 because here it works
level_load does the job 2 but a litlle different
and if you use warez please buy a legal version
"empty"
|
|
|
Re: Stop all Functions
[Re: Superku]
#294948
10/22/09 06:28
10/22/09 06:28
|
Joined: Mar 2009
Posts: 42 Dominican Republic
keilyn3d
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 42
Dominican Republic
|
I solved the problem and I use a warez version, why I am making a game and I am using a code Like the dugeon creator from aum, and it don't work in the new A7 I don't know the reason, but I wish can use the new A7, and if you know the reason you can help me, here I put the details. This is the code for make that the level been read from a text file that use # for the walls and B for buttons and J for the player, but in the new A7 the level appear empty and in the warez run without problems. The version of the warez is 7.05.4
function leerdatos(){ file_handle = file_open_read(archivo); //abrir el archivo tamano_x = file_var_read(file_handle); //tamaņo X del mapa en la primera linea tamano_y = file_var_read(file_handle); // Tamaņo Y del mapa en la segunda linea loaddividido /= tamano_y; file_str_read(file_handle,dat); //tercera linea se copia a el string dat while(tamano_y > lectura_y){//wait(1); // loop de lectura str_clip(dat,character); //borra el numero de letras que diga character desde el principio str_cpy(letra,dat);// copiar la letra que se lee a el string letra if(str_cmp(letra, "#") == 1){ // si el string letra es igual a # se crea una pared if(Tipodenivel == 1){ent_create("CAJA4.WMB", posicion, cajaF);} if(Tipodenivel >= 2){ent_create("CAJA4.WMB", posicion, cajaF);} ent_create("SombraC.tga", vector(posicion.x + 10, posicion.y - 10, posicion.z), sombracaja); // ent_create("CAJA2.WMB", posicion, cajaF); } if(str_cmp(letra, "j") == 1){ // si el string letra es igual a j se crea el jugador //ent_create("hombrenuevo.mdl",Vector(posicion.x,posicion.y,31),PlayerK3d);////hombre ent_create("player.mdl",Vector(posicion.x,posicion.y,19),PlayerK3d);///test cari //ent_create("hombrenuevo.mdl",Vector(posicion.x,posicion.y,0),PlayerK3d); ent_create("sombra.tga",Vector(posicion.x,posicion.y,0),sombraf); vec_set(jugadorinicio,posicion); jugadorinicio.z = 19; } if(str_cmp(letra, "t") == 1){ // si el string letra es igual a T se crea una torre // ent_create(null,vector(posicion.x, posicion.y, posicion.z + 64),finalf); // ent_create(null,vector(posicion.x, posicion.y, posicion.z + 64),finalf); // ent_create(null,vector(posicion.x, posicion.y, posicion.z + 64),finalf); ent_create("finishw.mdl", vector(posicion.x , posicion.y, posicion.z - 5), finalf); } if(str_cmp(letra, "b") == 1){ // si el string letra es igual a B se crea un boton ent_create("boton.mdl", posicion, botonF); cantidaddebotones +=1; } if(str_cmp(letra, "p") == 1){ // si el string letra es igual a p se crea una puerta ent_create("puerta1.wmb", vector(posicion.x,posicion.y,64), puertaF); } posicion.y -= 128; //cada vez que lee una letra se le restan 64 a la posicion Y if(character == 0){character += 1;} //esto es para que al principio no borre nada lectura_x +=1; //esto es un marcador para saber por que letra va lellendo if(lectura_x == tamano_x)&&(lectura_y < tamano_y){ //para que lea la proxima linea file_str_read(file_handle,dat); loading += loaddividido; character = 0; //para que no borre la primera letra de la nueva linea posicion.y = 3000; // para que cree la proxima entidad a la isquierda posicion.x -= 128;// para que se cree la proxima entidad mas abajo lectura_x = 0; // resetea el string lectura lectura_y += 1; //para el loading // wait(1); loadingp.alpha = 100 - loading; }}}
I only use the Engine of the warez version, and I use WED, and MED of the legal version.
Last edited by keilyn3d; 10/22/09 06:37.
|
|
|
Re: Stop all Functions
[Re: keilyn3d]
#295000
10/22/09 13:37
10/22/09 13:37
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
... I only use the Engine of the warez version, and I use WED, and MED of the legal version. Why do you use a illegal engine version while you seem to have a legal one (because WED is not freeware, thus you must have a legal 3DGamestudio licence) And by the way: Asking for help and using a warez version is pretty impudent.
|
|
|
|