News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: *RELEASE* - Bully LUA Script Sources (just a few)  (Read 63722 times)

0 Members and 1 Guest are viewing this topic.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #90 on: January 09, 2013, 01:10:55 PM »
I did install it. What do I do with it thought?

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #91 on: January 10, 2013, 03:52:27 PM »
unexpected symbol near 'ô' occurs for many reasons.

Most of the time it is simply due to a invalid character in the code syntax itself...or a missing or extra end statement or a if or while in the wrong place.

Please post your full code using the bbcode button that has a # on it and I will look it over and see if I can spot the problem.

Offline Scoff

  • Jr. Member
  • **
  • Posts: 13
  • Gender: Male
  • ...........
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #92 on: January 10, 2013, 03:54:42 PM »
I get the code on Bully Magazine Issue.I only change J_Grappler_A for P_Grappler_A.Here it is:

Code: [Select]
ImportScript(“\\Library\\LibTable.lua”)
ImportScript(“\\Library\\LibPed.lua”)
local l_0_0 = false
MissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
  PlayerSetHealth(200)
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  local l_1_3 = 25
  local l_1_4, l_1_5, l_1_6 = PedGetPosXYZ(gPlayer)
  local l_1_7 = PedCreateXYZ(l_1_3, l_1_4 + 1, l_1_5 + 1, l_1_6)
  PedSetActionTree(gPlayer, “/Global/P_Grappler_A”, “Act/
Anim/P_Grappler_A.act”)
  PedRecruitAlly(gPlayer, l_1_7, true)
  PedMakeAmbient(l_1_7)
end
MissionCleanup = function()
end
main = function()
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #93 on: January 10, 2013, 04:23:35 PM »
Code: [Select]
  PedSetActionTree(gPlayer, “/Global/P_Grappler_A”, “Act/
Anim/P_Grappler_A.act”)

I don't know if you just did that to shorten out the line when you pasted your code here, but if you're using that line in your script why is half of the code on a new line?
« Last Edit: January 10, 2013, 04:28:18 PM by JmTsHaW »

deadpoolXYZ

  • Guest
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #94 on: January 10, 2013, 04:31:17 PM »
Code: [Select]
  PedSetActionTree(gPlayer, “/Global/P_Grappler_A”, “Act/
Anim/P_Grappler_A.act”)

I don't know if you just did that to shorten out the line when you pasted your code here, but if you're using that line in your script why is half of the code on a new line?

Because Madman wrote the code exactly like that in the magazine. It's not a big problem...

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #95 on: January 10, 2013, 04:35:53 PM »
^ Ah, I see. I never meant to sound harsh or anything if anyone took that the wrong way :happy:

Code: [Select]
  PedSetActionTree(gPlayer, “/Global/P_Grappler_A”, “Act/Anim/P_Grappler_A.act”)
Try replacing those two lines with the combined version of those lines  like above and your code should work.

Offline Scoff

  • Jr. Member
  • **
  • Posts: 13
  • Gender: Male
  • ...........
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #96 on: January 10, 2013, 04:41:08 PM »
^ Ah, I see. I never meant to sound harsh or anything if anyone took that the wrong way :happy:

Code: [Select]
  PedSetActionTree(gPlayer, “/Global/P_Grappler_A”, “Act/Anim/P_Grappler_A.act”)
Try replacing those two lines with the combined version of those lines  like above and your code should work.

I tried your code,but still the same error.

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #97 on: January 10, 2013, 04:47:09 PM »
^ Usually when that error is given, it displays a number which is the exact line the error is on, what number does it say?

Offline Scoff

  • Jr. Member
  • **
  • Posts: 13
  • Gender: Male
  • ...........
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #98 on: January 10, 2013, 04:49:57 PM »
^ It says 1

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #99 on: January 10, 2013, 04:53:09 PM »
It's the "s being italicised, remove them and replace every instance of them with normal, non-italised versions.

You will know when you've done it right because the section of code the "s encase will turn different colours depending on the zone.

Offline Scoff

  • Jr. Member
  • **
  • Posts: 13
  • Gender: Male
  • ...........
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #100 on: January 10, 2013, 05:05:01 PM »
It's the "s being italicised, remove them and replace every instance of them with normal, non-italised versions.

You will know when you've done it right because the section of code the "s encase will turn different colours depending on the zone.

Thanks for the help! Now it compile normally.Time to test de style!

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #101 on: January 10, 2013, 05:36:40 PM »
Having CameraFollowPed set to a script spawned ped such as the one in the debug bodyguard script actually makes the camera follow that bodyguard around.

I still haven't got the hang of button mapping yet, but setting the camera to switch between the bodyguard and Jimmy on a button press could actually be useful for some mods.

PHjohnyvincent

  • Guest
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #102 on: January 11, 2013, 09:17:17 PM »




:(
« Last Edit: January 11, 2013, 09:53:37 PM by PHjohnyvincent »

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #103 on: January 11, 2013, 10:22:18 PM »
Did you install Virtual Studio 2008?

PHjohnyvincent

  • Guest
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #104 on: January 13, 2013, 01:05:41 AM »
Nope