Jump to content

Narutimmy

Members
  • Posts

    1,004
  • Joined

  • Last visited

Details

  • Gang
    ZombiWorld
  • Location
    Sociedad de Almas

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Narutimmy's Achievements

Hard-@ss

Hard-@ss (35/54)

0

Reputation

  1. Hello good afternoon, I need your help, I want to convert this code created in C to Lua, if someone can help me please. #include <stdio.h> //Variables globales int nmatriz = 0; void generarMatriz(int nmatriz); //Funcion principal int main(){ printf("Inserta el tamaño de la matriz\n"); scanf("%d",&nmatriz); generarMatriz(nmatriz); } //Funcion que generara la matriz en caracol void generarMatriz(nmatriz){ int i,j; int countTotal = 1,tamanioTotal = nmatriz*nmatriz; int fila = 0, check = nmatriz, band = 1; int matrizCaracol[nmatriz][nmatriz]; //Llena matriz while(countTotal<=tamanioTotal){ //Hacia la derecha for(i=band-1; i < check; i++){ matrizCaracol[fila][i] = countTotal; countTotal = countTotal++; } fila = nmatriz - band; check = nmatriz - band; //Hacia abajo for(i=band; i <= check; i++){ matrizCaracol[i][fila] = countTotal; countTotal = countTotal++; } //Hacia la izquierda for(i=check-1; i >= (band-1) ; i--){ matrizCaracol[fila][i] = countTotal; countTotal = countTotal++; } fila = band-1; //Hacia arriba for(i=check-1; i >= band ; i--){ matrizCaracol[i][fila] = countTotal; countTotal = countTotal++; } band++; fila = band-1; } //Imprimir matriz for(i=0; i<nmatriz; i++){ for(j=0; j<nmatriz; j++){ printf("%d \t", matrizCaracol[i][j]); } printf("\n"); } } I have already made several attempts but I get it, help please. This is what the code has to do. sending to print on screen.
  2. mas bien lo que quiero evitar es esto, que lo matan super facil porque se ponen detras de un objeto y listo
  3. Buenas gente, tengo mucho sin realmente postear algo, hoy vengo a pedir un poco de ayuda o ideas, pasa que tengo el clasico "Boss" nemesis en area... todo bien, buen daño buena vida etc... el problema es que... es muy torpe lo tiran al pozo o bugean con objetos y es super facil matar, entonces quiero ver como hacer un verdadero desafio, pensaba en algo como que se de warp a los usuarios si esta a X distancia o algo asi, nose... alguna idea?
  4. If in fact it is just what I am going to do, with that I discard that it is someone external
  5. Not anything, like the folder dumps is empty ..
  6. Good night, I have a problem with my server, since yesterday it is being switched off randomly, every 20min, 50min, 2h ... I already tried to review the recent changes and nothing, it's not a host issue, it's not a DDoS ... I have a VPS with these features ... The CPU usage does not exceed 40% and the Ram 50% ... I have activated anti-command spam protection ... And likewise happens ... already check that it is not some resource but there were no modifications in 1 week ... Anyone have any idea how to do it?
  7. Buenas quiero saber si alguien sabe como arreglarlo... tengo entendido que es bug de mta, o algo comun... Pasa que en ocaciones al bajar de un auto se bug la animacion... entonces al disparar tu te ves normal, pero los demas te ven como si tiraras puños al aire (que si hacen daño).... Alguien sabe como arreglarlo? PD: Hola
  8. Narutimmy

    Money (Ayuda)

    function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end
  9. lo que no se usar es " interpolateBetween"
  10. no , probe la forma que me dio alex pero no funiono, 1 de cada 10 lo habienta un poco hacia arriba pero solamente, probe a subirle la potencia y lo mismo
  11. perdona, es que no entendi mucho de como dices <.<
  12. pero eso solo funciona en objetos que no? lo que quiero mover es personas y autos
×
×
  • Create New...