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


Author Topic: Help  (Read 1649 times)

0 Members and 1 Guest are viewing this topic.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Help
« on: September 19, 2015, 04:49:48 PM »
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
 
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
  local l_1_0 = 270 -- X coords
  local l_1_1 = -110 -- Y coords
  local l_1_2 = 6.4000000953674 -- Z coords
 
  PlayerSetHealth(200) -- gives the player 200 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
 
end
 
MissionCleanup = function()
end -- end statement
 
main = function() -- Main mission function
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

TextPrintString ("Preps Vs Greasers Enjoy By: Alexander Enjoy "), 4, 1)

PedCreateXYZ (33, X, Y, Z)
PedCreateXYZ (34, X, Y, Z)
PedCreateXYZ (35, X, Y, Z)
PedCreateXYZ (37, X, Y, Z)
PedCreateXYZ (40, X, Y, Z)
PedCreateXYZ (30, X, Y, Z)
PedCreateXYZ (31, X, Y, Z)
PedCreateXYZ (32, X, Y, Z)

PedCreateXYZ (21, X, Y, Z)
PedCreateXYZ (22, X, Y, Z)
PedCreateXYZ (23, X, Y, Z)
PedCreateXYZ (24, X, Y, Z)
PedCreateXYZ (26, X, Y, Z)
PedCreateXYZ (27, X, Y, Z)
PedCreateXYZ (28, X, Y, Z)
PedCreateXYZ (29, X, Y, Z)


PedAttack(Darby, gPlayer,1)
PedAttack(Johnny, gPlayer,1)
PedAttack(Justin, gPlayer,1)


He is looking at the notepad and was looking for the error but do not see any compile errors but I want but I get error

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Re: Help
« Reply #1 on: September 19, 2015, 05:32:00 PM »
ok
what the hell is this bruv

you dont even have coord's for your ped's to spawn?
there not even in the mod it-self it's just stuck out like a tiny bit of paper not sticked in a book
 put it in main function or something i dont remember much, but you need cord's for the peds all i know

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Help
« Reply #2 on: September 19, 2015, 07:47:48 PM »
It's pretty simple you have to add something to the PedCreateXYZ a cord which is an area coord that spawns the peds at a specific location look at my tutorial to figure out what you need.

Preppy = PedCreateXYZ(22,  -522.3120, -22.0529, 35.7500)

It should look something like this.
« Last Edit: September 19, 2015, 07:51:31 PM by AlphaTech »

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Re: Help
« Reply #3 on: September 20, 2015, 04:31:48 PM »
I did not ask for help because I did not find errors but that other mods if I did well to compile lua now only ask for this help because they found the mistake and miss I had to put Preppy = PedCreateXYZ (22, -522.3120, -22.0529, 35.7500) code ALPHATECH thanks for what I did compile other mods me well ok thanks bye  ;D