Salut,
Alors le code suivant ne marche pas, je ne sais pas pourquoi :
void LoadSkins(string Name)
{
SDL_Surface *temp;
string FileName = "Medias\Skins\" + Name + "\Background.png";
temp = IMG_Load(FileName);
Level.Background = SDL_DisplayFormat(temp);
SDL_FreeSurface(temp);
}
//Message d'erreur :
54:20 C:\Documents and Settings\Alexandre\Bureau\Nibble project SDL\main.cpp [Warning] unknown escape sequence '\S'
C:\Documents and Settings\Alexandre\Bureau\Nibble project SDL\main.cpp In function `void LoadSkins(std::string)': 54 C:\Documents and Settings\Alexandre\Bureau\Nibble project SDL\main.cpp stray '\' in program
54 C:\Documents and Settings\Alexandre\Bureau\Nibble project SDL\main.cpp expected `,' or `;' before "Background"
54 C:\Documents and Settings\Alexandre\Bureau\Nibble project SDL\main.cpp missing terminating " character
C:\Documents and Settings\Alexandre\Bureau\Nibble project SDL\Makefile.win [Build Error] [main.o] Error 1
Turok