Kabcorp Utilisateur confirmé: Rang **
Messages : 315 Localisation : Savoie Projet Actuel : trop...
| Sujet: Cannot compare arguments. Mer 19 Mai 2010 - 16:43 | |
| yo! j'ai un problème de fraction extremement stupide J'aimerais faire une barre de progression du son joué. avec: SS_GetSoundPosition() SS_GetSoundLength() (fonctions de SuperSound.dll) - Code:
-
if global.sound>0{draw_healthbar(16,100,room_width-16,116,SS_GetSoundPosition(global.sound)/SS_GetSoundLength(global.sound),c_black,c_green,c_green,0,1,1)}
L'erreur: - Spoiler:
ERROR in action number 1 of Draw Event for object o_Sound_Info:
In script s_Sound_Info: Error in code at line 44: if global.sound>0{draw_healthbar(16,100,room_width-16,116,SS_GetSoundPosition(global.sound)/SS_GetSoundLength(global.sound),c_black,c_green,c_green,0,1,1)}
at position 18: Cannot compare arguments.
si je n'ai pas été assé clair, dite le moi :lng: merci de vôtre aide |
|
SPLN Utilisateur confirmé: Rang ***
Messages : 588 Localisation : Sur son ordinateur *vous vois* arrêtez de me regarder comme ça Projet Actuel : En quête de projet(s)!
Mes projets:
SP Lecteur Multimedia (Stand by)
S-Portable Graphics (demo1.8 is out! demo2.0 is planned)
SSB RPG (Stand by)
| Sujet: Re: Cannot compare arguments. Mer 19 Mai 2010 - 16:47 | |
| essaie avec: - Code:
-
if real(global.sound)>0 {draw_healthbar(16,100,room_width-16,116,SS_GetSoundPosition(global.sound)/SS_GetSoundLength(global.sound),c_black,c_green,c_green,0,1,1)} J'ai eu le même problème avec Saudio. EDIT: Pour la barre de progression j'ai fait: Pourcentage = Position/durée Exemple: draw_line_color(x1,y1,x2+round(Longueur de la ligne*global.percent),y2,c_black,c_black)
Dernière édition par SPLN le Mer 19 Mai 2010 - 16:55, édité 3 fois |
|
Kabcorp Utilisateur confirmé: Rang **
Messages : 315 Localisation : Savoie Projet Actuel : trop...
| Sujet: Re: Cannot compare arguments. Mer 19 Mai 2010 - 16:50 | |
| Déja essayé :fier: avec le "real", plus de message d'érreur mais plus de progression dans la healthbar |
|
SPLN Utilisateur confirmé: Rang ***
Messages : 588 Localisation : Sur son ordinateur *vous vois* arrêtez de me regarder comme ça Projet Actuel : En quête de projet(s)!
Mes projets:
SP Lecteur Multimedia (Stand by)
S-Portable Graphics (demo1.8 is out! demo2.0 is planned)
SSB RPG (Stand by)
| Sujet: Re: Cannot compare arguments. Mer 19 Mai 2010 - 16:56 | |
| |
|
Kabcorp Utilisateur confirmé: Rang **
Messages : 315 Localisation : Savoie Projet Actuel : trop...
| Sujet: Re: Cannot compare arguments. Mer 19 Mai 2010 - 17:04 | |
| okay! je verais ça ce soir :lng: |
|
Contenu sponsorisé
| Sujet: Re: Cannot compare arguments. | |
| |
|