Nickeltheredhusky Posted October 30 Report Share Posted October 30 Hello everyone ! Nicekl reporting ! Ive started updated my mod and ive mixing some features of some "ToHospital" script for add a radio message when a aptient is transported to hospital but when i clic on "GoToHospital" ive the message ive joint to this message and if ya can look what can maybe be wrong in the script taht can be helpful Thank by advance Nick' out ! LAToHospital.script Quote Link to comment Share on other sites More sharing options...
CanadianFrog Posted November 2 Report Share Posted November 2 On 10/30/2024 at 11:00 AM, Nickeltheredhusky said: Hello everyone ! Nicekl reporting ! Ive started updated my mod and ive mixing some features of some "ToHospital" script for add a radio message when a aptient is transported to hospital but when i clic on "GoToHospital" ive the message ive joint to this message and if ya can look what can maybe be wrong in the script taht can be helpful Thank by advance Nick' out ! LAToHospital.script 15.59 kB · 0 downloads Hey nick, I'm taking a quick look at the script and I'm having trouble finding where you've made your edits. If you hit the middle button on that script error, it should tell you exactly which line of code is throwing the error. Quote Link to comment Share on other sites More sharing options...
Nickeltheredhusky Posted November 3 Author Report Share Posted November 3 Hey ! When i clic on the "recommencer"" button its the line of the radio message of the vehicle ! and the error is the same but different line in function of what vehicle execute the script Quote Link to comment Share on other sites More sharing options...
The Loot Posted November 7 Report Share Posted November 7 "soundID" isn't properly set up because you're missing a declaration of what it is. You need the following somewhere before the first use of it: int soundID; Just stick it at the top of the script with the constants. Quote Link to comment Share on other sites More sharing options...
Nickeltheredhusky Posted Thursday at 07:18 PM Author Report Share Posted Thursday at 07:18 PM On 11/7/2024 at 3:13 AM, The Loot said: "soundID" isn't properly set up because you're missing a declaration of what it is. You need the following somewhere before the first use of it: int soundID; Just stick it at the top of the script with the constants. What kind of declaration i need do ? the soundID is not the sound in .wav ? Quote Link to comment Share on other sites More sharing options...
The Loot Posted Friday at 09:25 AM Report Share Posted Friday at 09:25 AM Actually, are those sounds supposed to be something repeating that follows the vehicle, or just something that just plays once when you execute the command? If the latter, the whole soundID thing is unnecessary in the first place. You can actually just replace if(StrCompare(Caller->GetPrototypeFileName(), PROTO_UMH) == 0) { soundID = Audio::PlaySample3D(SND_TOCHUMH, Caller->GetPosition()); v.AttachSound(soundID); } with if(StrCompare(Caller->GetPrototypeFileName(), PROTO_UMH) == 0) Audio::PlaySample3D(SND_TOCHUMH, Caller->GetPosition()); and so forth with all the other protos. If the former, like sirens, that's a larger process. Quote Link to comment Share on other sites More sharing options...