Search found 2 matches
- Tue Aug 29, 2006 7:43 pm
- Forum: PSP Development
- Topic: PSP Crash after while with a number random
- Replies: 1
- Views: 1244
I have resolved my problem Change : int hasard(int MAX) { int nombreAuHazard; srand(sceKernelLibcTime(NULL)); nombreAuHazard = rand() % MAX; return nombreAuHazard; } int main() { ... } To : int hasard(int MAX) { int nombreAuHazard; nombreAuHazard = rand() % MAX; return nombreAuHazard; } int main() {...
- Tue Aug 29, 2006 6:10 pm
- Forum: PSP Development
- Topic: PSP Crash after while with a number random
- Replies: 1
- Views: 1244
PSP Crash after while with a number random
Hello, I have a problem with this code my psp crash and I do not understand why because it goes on LUA : #include <pspdisplay.h> #include <pspctrl.h> #include <pspkernel.h> #include <pspdebug.h> #include <pspgu.h> #include <png.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <gr...