Jump to content

[HELP]Stat


ali

Recommended Posts

marker55 = createMarker( 1000, 1000, 47,"cylinder", 1.5, 255, 225, 0 ) 
  
GUIEditor = { 
    staticimage = {}, 
    window = {}, 
} 
  
GUIEditor.window[1] = guiCreateWindow(321, 142, 694, 532, "Stats", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetAlpha(GUIEditor.window[1], 1.00) 
  
Cars = guiCreateLabel(8, 42, 325, 36, "", false, GUIEditor.window[1]) 
guiSetFont(Cars, "default-bold-small") 
Helicopters = guiCreateLabel(10, 110, 325, 36, "", false, GUIEditor.window[1]) 
guiSetFont(Helicopters, "default-bold-small") 
Boats = guiCreateLabel(10, 176, 325, 36, "", false, GUIEditor.window[1]) 
guiSetFont(Boats, "default-bold-small") 
BikeSkills = guiCreateLabel(10, 248, 325, 36, "", false, GUIEditor.window[1]) 
guiSetFont(BikeSkills, "default-bold-small") 
CycleSkills = guiCreateLabel(10, 328, 325, 36, "", false, GUIEditor.window[1]) 
guiSetFont(CycleSkills, "default-bold-small") 
GUIEditor.staticimage[1] = guiCreateStaticImage(383, 56, 203, 296, ":lils/images/examples/mtalogo.png", false, GUIEditor.window[1]) 
Muscles = guiCreateLabel(10, 415, 325, 36, "", false, GUIEditor.window[1]) 
guiSetFont(Muscles, "default-bold-small") 
guiSetVisible(GUIEditor.window[1], false) 
showCursor(false) 
  
function MarkerHit (hitPlayer) 
    if ( hitPlayer == localPlayer ) then 
        guiSetVisible (GUIEditor.window[1], true) 
        showCursor (true) 
    end 
end 
addEventHandler ( "onClientMarkerHit", marker55, MarkerHit ) 
  
  
addEventHandler("onClientRender", root, 
function (localPlayer) 
local heli = getPedStat( localPlayer, 124 ) 
local car = getPedStat( localPlayer, 122 ) 
local boa = getPedStat( localPlayer, 123 ) 
local bike = getPedStat( localPlayer, 229 ) 
local cycle = getPedStat( localPlayer, 230 ) 
local Muss = getPedStat( localPlayer, 23 ) 
guiSetText(Cars, "Cars Destroyed: " ..car.. ) 
guiSetText(Helicopters, "Helicopters Destroyed: " ..heli.. ) 
guiSetText(Boats, "Boats Destroyed: " ..Boat.. ) 
guiSetText(BikeSkills, "Bike Skills: " ..Bike.. ) 
guiSetText(CycleSkills, "cycle Skills : " ..cycle.. ) 
guiSetText(Muscles, "Your Muscles: " ..Muss.. ) 
end 
) 
  

errors

[2013-01-14 00:59:13] WARNING: Loading script failed: ali\logsss.lua:42: unexpected symbol near ')'

[2013-01-14 01:01:11] WARNING: Loading script failed: ali\logsss.lua:54: unexpected symbol near ')'

[2013-01-14 01:03:33] WARNING: Loading script failed: ali\logsss.lua:44: unexpected symbol near ')'

[2013-01-14 01:08:56] WARNING: Loading script failed: ali\logsss.lua:45: unexpected symbol near ')'

Link to comment
guiSetText(Cars, "Cars Destroyed: " ..car.. ) 
guiSetText(Helicopters, "Helicopters Destroyed: " ..heli.. ) 
guiSetText(Boats, "Boats Destroyed: " ..Boat.. ) 
guiSetText(BikeSkills, "Bike Skills: " ..Bike.. ) 
guiSetText(CycleSkills, "cycle Skills : " ..cycle.. ) 
guiSetText(Muscles, "Your Muscles: " ..Muss..  

All the dots before ")" shouldn't be there, remove them.

Link to comment
guiSetText(Cars, "Cars Destroyed: " ..car.. ) 
guiSetText(Helicopters, "Helicopters Destroyed: " ..heli.. ) 
guiSetText(Boats, "Boats Destroyed: " ..Boat.. ) 
guiSetText(BikeSkills, "Bike Skills: " ..Bike.. ) 
guiSetText(CycleSkills, "cycle Skills : " ..cycle.. ) 
guiSetText(Muscles, "Your Muscles: " ..Muss..  

All the dots before ")" shouldn't be there, remove them.

addEventHandler("onClientRender", root,

function (localPlayer) ---and also here localPlayer not needed

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...