[Closed/solved] Law script help needed
#1
Question 
Hi guys,

So, i just created a script (my first) for AutoHotKey, which i hoped i could use very soon.
The script is for me, when i'm president and trying to send laws, without having to copy and paste for like 15 minutes or so...
The problem is, the script is only sending the first law...

-= Code is down below =-


Spoiler :
Code:
::/laws::
laws =
(
say /addlaw - = LAWS OF EVOCITY = -
say /addlaw
say /addlaw {CARS}
say /addlaw Max. Speed inside the City is 30MPH.
say /addlaw Max. Speed outside the City is 50MPH.
say /addlaw Running over red light wil result in a fine.
say /addlaw Parking on the street, or blocking the street will result in a fine.
say /addlaw Stealing a car wil result in a arrest.
say /addlaw Car reces are NOT allowed.
say /addlaw Do not drive if you dont have to.
say /addlaw Driving while beeing under alcohol influential will result in a fine or worse.
say /addlaw Check you car for damage before you start driving.
say /addlaw Not parking your car in your garage or on a parking lot will result in a fine.
say /addlaw You may not have any sirens on your car.
say /addlaw Reckless driving wil result in a fine.
say /addlaw Speeding will result in a fine.
say /addlaw Not driving on the right side of the street will get your car impounded.
say /addlaw Hitting somone with your car will result in a fine.
say /addlaw Hit and drive will result in a arrest warrant.
say /addlaw
say /addlaw {Houses}
say /addlaw You may only own 2 houses at once.
say /addlaw Having walls/fences higher than an averange officer will result in a warrant.
say /addlaw That also includes walls you can see through.
say /addlaw Blocking your windows will result in a search warrant.
say /addlaw Locking someone into your house without theire persmission will result in a warrant.
say /addlaw
say /addlaw {Drugs}
say /addlaw All drugs are illigal in Evo City.
say /addlaw You may take drugs if a doctor tells you.
say /addlaw Selling drugs will be result in a arrest.
say /addlaw Trading drugs will be result in a arrest.
say /addlaw Consuming the drugs will result in a fine.
say /addlaw Owning drugs will result in a arrest.
say /addlaw Growing weed or other drugs will result in a arrest.
say /addlaw
say /addlaw {Criminal codes of Evo City}
say /addlaw *No punishment without a law*
say /addlaw An act may be punished if criminal liabilty had been establisshed by law before the act was committed.
say /addlaw A person who commits an act in self-defence does not act unlawfully.
say /addlaw Self-defence means any defensive action that is necessary to advert an imminent unlawfully.
say /addlaw Mugging someone will result in a arrest.
say /addlaw Kidnapping will result in a arrest.
say /addlaw Stealing a car will result in a arrest.
say /addlaw Attempting to steal a car wil result in a arrest.
say /addlaw Robbing a store will result in a arrest.
say /addlaw Attempting to rob a store will result in a arrest.
say /addlaw Owning a weapon will result in a fine and the weapon will be impounded.
say /addlaw Hurting someone will result in a arrest.
say /addlaw Attempting to hurt somone will result in a arrest.
say /addlaw Starting fight in public will result in a arrest.
say /addlaw Stealing something will result in a arrest.
say /addlaw Attempting to steal something will result in a fine.
say /addlaw Taking a hostage will result in a arrest.
say /addlaw Trying to take someone in hostage will result in a arrest.
say /addlaw
say /addlaw {Nexus}
say /addlaw Passing the Nexus desk without permission will result in a arrest.
say /addlaw Entering the Nexus garage without permission wil result in a arrest.
say /addlaw Carring a weapon inside the Nexus will result in a arrest.
say /addlaw Trying to pass the Nexus Security will result in a arrest.
say /addlaw Ignoring the order to leave the Nexus will result in a fine.
say /addlaw
say /addlaw {Government}
say /addlaw The president ONLY can make someone a undercover Officer/FBI
say /addlaw Police and SRU are not allowed to point there guns at innocent people.
say /addlaw Weapons are made for emergencies
say /addlaw If a Police Officer or SRU breaks a rule, he will get DEMOTED
say /addlaw You can always report a Government official at the Presidents assistant.
say /addlaw Officers are only allowed to enter a building with a warrant unless they got permission from the owner.
say /addlaw Using the tazer on pregnant womans isnt allowed, doing so will result in a fine and a DEMOTE.
say /addlaw
say /addlaw {Shops | Licenses}
say /addlaw You need to have/buy a shop license to open a shop.
say /addlaw Casinos arent shops, they need a special license.
say /addlaw Owning a gun shop will require a special license.
say /addlaw You need to register your shop at Nexus.
say /addlaw
say /addlaw {Fines | Warrants}
say /addlaw ALL car fines will be 500$
say /addlaw ALL Criminal code fines will be 650$
say /addlaw ALL Drug fines will be 600$
say /addlaw ALL Nexus fines will be 700$
say /addlaw ALL other fines will be 550$
say /addlaw All arrest will be 10/15 minutes.
say /addlaw Search warrants will be removed by the officer who gave it to someone.
say /addlaw You can tell the president when that didn't happened.
say /addlaw
say /addlaw {Other laws}
say /addlaw If you want to meet/talk with the president you will get handcuffed and searched.
say /addlaw No body is banned yet, this might change.


)
sleep, 100
sendinput %laws%
sleep, 100
Send, {enter}



Can anyone help me?
Thanks Wink
Greetings from me
#2
i dont think you can use that on Fl tbh i think the console only gets the first line.
[Image: xfmK5LX.jpg]
The original Cuban Minge
#3
(04-07-2016, 07:42 PM)Georgy Wrote: i dont think you can use that on Fl tbh i think the console only gets the first line.

Other people say they use it..
[Image: get.php?s=STEAM_0:0:74887914&b=13]
- = Cherrygamer | Dean Miller = -
#4
Law scripts are allowed, however, any other script is not.

Kind Regards,
[Image: edfa8a344463b04e45f386ad4525099e.png]
#5
You miss quite a lot.
First of all you need "sendinput y". You also need "return" at the end.
You also need "sleep". And on top of that you also need {enter} after each sentence/law

Example


Spoiler :
NumpadAdd::
Sendinput y
Sleep 100
Sendinput You have the right to remain silent.{Enter}
Sleep 1100
Sendinput y
Sleep 100
Sendinput Anything you do or say can and will be used against you in the court of law.{Enter}
Sleep 1100
Sendinput y
Sleep 100
Sendinput You have the right to an attorney after initial processing has been completed.{Enter}
Sleep 1100
Sendinput y
sleep 100
Sendinput Do you understand these rights as I have read them?{enter}
return



Hope it did help
Oh bollocks... I lost my Signature!
#6
(04-07-2016, 07:54 PM)Balls Wrote: You miss quite a lot.
First of all you need "sendinput y". You also need "return" at the end.
You also need "sleep". And on top of that you also need {enter} after each sentence/law

Example


Spoiler :
NumpadAdd::
Sendinput y
Sleep 100
Sendinput You have the right to remain silent.{Enter}
Sleep 1100
Sendinput y
Sleep 100
Sendinput Anything you do or say can and will be used against you in the court of law.{Enter}
Sleep 1100
Sendinput y
Sleep 100
Sendinput You have the right to an attorney after initial processing has been completed.{Enter}
Sleep 1100
Sendinput y
sleep 100
Sendinput Do you understand these rights as I have read them?{enter}
return



Hope it did help
Thanks,
got it working now!
I'll give you a +rep for the help Wink

Thanks all the others that helped
Greetings from me
#7
hi can i use your code? thank btw for these Smile
#8
Answered


Forum Jump:


Users browsing this thread: 1 Guest(s)