« first day (2991 days earlier)      last day (2029 days later) » 

12:11 AM
^
@PintOfMilk Your bottleneck will be the IO, this will be the same for python and c.
 
 
1 hour later…
1:19 AM
That's funny. I have a virtual machine with a Ubuntu server on it, but I can't find what it's for.
 
 
12 hours later…
12:49 PM
Hello
@AlexandreVaillancourt to contact the Dark Brotherhood. Type in the Black Sanctum chant and you will be given an application
Then you put someone's name and pic on the application, send it in mail, and in 2-3 weeks that person goes bye-bye forever.
 
 
3 hours later…
user92578
3:40 PM
@PintOfMilk You are not going to notice a performance difference on stuff like this
 
4:34 PM
for( (n=((playerycurrentmapy)+playerx+1)); (n<((playerycurrentmapy)+playerx+7)); n++) ///This won't work in C can you help me? I am assuming playery,playerx,currentmapy are all intergers but it doesn't seem to add up
 
user92578
What happens?
 
user92578
What do you expect to happen?
 
user92578
I think you use too many braces there
 
user92578
for (int n = playerycurrentmapy + playerx + 1; n < playerycurrentmapy + playerx + 7; n++) {
}
 
Agreed with @Tyyppi_77 - too many parens to be readable. Looked like Lisp code...
 
4:42 PM
sorry should be playery*currentmapy
 
user92578
Also I'm pretty sure that it doesn't even compile because of the braces in the initialization statement
 
user92578
But what is the issue?
 
when x=2
 
user92578
What happens, and what do you expect to happen?
 
user92578
"it doesn't seem to add up" is a terrible description of an error
 
4:45 PM
char cm[]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW";
so when x=0 it displays abcdefg
but when x=2
 
user92578
What is x, I don't see it in the code?
 
playerx
 
user92578
5:34 PM
so what happens when playerx=2?
 
7:07 PM
when playerx=2: it is equal something like adefghij
 
 
2 hours later…
9:10 PM
@PintOfMilk in this case, it seems unlikely that someone here is going to be able to walk you through debugging this based off that single line of code. It sounds like the problem is related to your array of char but we need to see how it's actually used in order to explain anything about it. Same thing goes for playerycurrentmapy, we can infer that it's probably an int, but not much else.
@PintOfMilk the basic parts of a loop are 1) setup 2) test condition 3) update & 4) body (though sometimes 3 & 4 are combined). To troubleshoot it, we need to see all those parts, what the result is, as well as what you're expecting the result to be.
 
10:09 PM
Ok @Pikalek :
int Bootup_ ();
int Clear_ ();
int Getmap_();
int Display_();
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
//clr[]={"\033[0;31m","\033[0;32m"};
char *clr[]={"\033[0;31m", "\033[0;32m"};
char *maps[]={"",""};
int mapsx[]={5,2};
int mapsy[]={5};

int player=0;
int x=0;
int y=0;
int n=0;




//vars now///
int hp = 0;
int mapid =0;
//char currentmap[9]="";
char cm[]="01bcdef";


int currentmapx=1;
int currentmapy=2;
///end vars///
int main ()
{
  printf ("Hello World");
Can't put it in special font because on mobile
 
10:23 PM
This looks to have a lot of extraneous content. For instance, there's a bunch of stuff commented out that's cluttering things up. Also, the loop you mentioned earlier doesn't seem to be present at all.
 

« first day (2991 days earlier)      last day (2029 days later) »