Dude come on this is easy... I'll give you something to work with...
use ints its better and easierCode:int yourgayarray[]; for( int i =0; i < 3000; i++ ) { yourgayarray[i] = i; }
I need help creating a long char array. Or is there a much simpler way to do this? I dont want to type it out to 30000. Is there a much shorter way to do this?
char *num[] = { "1", "2", .., "29000", "30000" };
Dude come on this is easy... I'll give you something to work with...
use ints its better and easierCode:int yourgayarray[]; for( int i =0; i < 3000; i++ ) { yourgayarray[i] = i; }
Last edited by matypatty; 08-30-2011 at 10:15 PM.
Use a For loop and Sprintf function
No I do not make game hacks anymore, please stop asking.
where would i place this. i can't put it as global though.
i am doing this
but my menu crashes when i want to turn on the hack to like 500Code:for(int i = 0; i < 30000; i++) { largeArray[i] = (char *)i; }
another method i tried but crashes
Code:char buffer [ FILENAME_MAX ]; for(int i = 0; i < 30000; i++) { sprintf(buffer, "%d", i); largeArray[i] = buffer; } return 0;
Last edited by Braco22; 08-31-2011 at 07:03 AM.
Code:char* None[30000]; for (int Of = 0; Of < 30000; ++Of) { char* YouKnowCPP = new char[15]; _itoa(Of, YouKnowCPP, 10); None[Of] = YouKnowCPP; }
Last edited by ISmokeWeedAmICoolNow; 08-31-2011 at 02:13 PM.
Last edited by freedompeace; 09-02-2011 at 02:08 AM.
Why do a char when it's easier to do an int but w/e
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development