Ich hatte mir ein Tutorial für einen MP3-Player geholt, jedoch tritt dieser Fehler auf:
Wrong Number of arguments to function or script
Das ist in diesem Code:
//Personalized Music script. Lets user play custom music. Written by Coyote//
{
//Loads song from Hard Drive
PlayerSong = "";
PlayerSong = get_open_filename("MP3 Audio Files (*.mp3)|*.mp3", "");
// Quits script if cancelled
if (PlayerSong != "")
{
// Checks to make sure its an .mp3.
if (string_copy(PlayerSong, string_length(PlayerSong) - 3, 4) != ".mp3")
{
}
//Add the file to game library then play it.
sound_add(PlayerSong,1,0,0) <<<<der fehler ist bei dieser reihe...
sound_loop(PlayerSong)
//Song name for later reference
global.songplaying=PlayerSong
}
loaded=1;
}
Was muss ich ändern???
Wrong Number of arguments to function or script
Das ist in diesem Code:
//Personalized Music script. Lets user play custom music. Written by Coyote//
{
//Loads song from Hard Drive
PlayerSong = "";
PlayerSong = get_open_filename("MP3 Audio Files (*.mp3)|*.mp3", "");
// Quits script if cancelled
if (PlayerSong != "")
{
// Checks to make sure its an .mp3.
if (string_copy(PlayerSong, string_length(PlayerSong) - 3, 4) != ".mp3")
{
}
//Add the file to game library then play it.
sound_add(PlayerSong,1,0,0) <<<<der fehler ist bei dieser reihe...
sound_loop(PlayerSong)
//Song name for later reference
global.songplaying=PlayerSong
}
loaded=1;
}
Was muss ich ändern???
Aktuelles Projekt: Aufbau - Strategiespiel.
Aktueller Entwicklungsschritt: Planung | Grundengine entwickeln.
Wichtig ist nicht, besser zu sein als alle anderen.
Wichtig ist, besser zu sein als du gestern warst.
Aktueller Entwicklungsschritt: Planung | Grundengine entwickeln.
Wichtig ist nicht, besser zu sein als alle anderen.
Wichtig ist, besser zu sein als du gestern warst.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von gamer ()