
tim260
Members-
Posts
157 -
Joined
-
Last visited
Everything posted by tim260
-
Thanks to castillo who helped me with this but i saw you werent getting it at all so i thought let me post it ;p Anyways your doing the same as i do when something doesnt work i post on the forums we shouldnt do that anymore an go to learn the wiki !
-
add the collum and then in s_main.lua set this if spawned then setElementData( client, "team", class.name ) fadeCamera( client, true ); setCameraTarget( client, client ); setTimer( setCameraTarget, 200, 1, client, client ); setElementData ( client, "Yourcollumname", skin.name ) -- here you set the data for the scoreboard collum ! triggerClientEvent( client, "spawn_SpawnedSuccessfully", client );
-
this was working before and now not anymore can someone please help me. and explain me what i did wrong not just post the solution and type try this fixmarker = createMarker(-2053.4602050781, 170.26126098633, 29.102718353271, 'cylinder', 4.0, 255, 255, 0, 75) fixmarker2 = createMarker(-2053.4973144531, 178.64505004883, 29.102718353271, 'cylinder', 4.0, 255, 255, 0, 75) vehicles = getElementsByType ( "vehicle" ) setElementAlpha ( fixmarker, 0 ) setElementAlpha ( fixmarker2, 0 ) for vehicleKey, vehicleValue in ipairs">ipairs(vehicles) do function fix(thePlayer) local redteam = getTeamFromName ( "Sierra Towing Inc." ) if isElementWithinMarker( thePlayer, fixmarker) or isElementWithinMarker( thePlayer, fixmarker2) and ( redteam ) then fixVehicle ( vehicleValue ) elseif not ( redteam ) then outputChatBox("You are not in the sierra team !", thePlayer, 255, 0, 0) elseif not isElementWithinMarker( thePlayer, fixmarker) or isElementWithinMarker( thePlayer, fixmarker2) then outputChatBox("You are not withing a sierra workshop !", thePlayer, 255, 0, 0) end end end addCommandHandler("fix", fix)
-
ifyou got it fixing can you send or iether help me ?
-
If you could fix this would be nice !
-
f.e. i have this GUI how would i use it to add items to that addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(379,234,319,417,"Construction Panel",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Grid[1] = guiCreateGridList(18,28,287,293,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Items",0.2) end )
-
so i have been reading the wiki lately and i stumbled acros : guiCreateGridList I dont understand the examples very good so can someone send me an example ( not the one from the wiki wich i dont understand very well ) What i want to do is create xml files and do f.e. something like in the code below helppages = { "helppage1.xml", "page2.xml", "page3.xml" and then the xml wiles would look like this : <article name> </article name> <content></content> if your understanding it im trying to implant that in an F1 help panel. Thanks for reading
-
i will but im a nab dont blame me !
-
NVM sorry lock the topic castillo helped me already HES THE BEST BTW, also for paying jobs he always works very fast and if it doesnt works how you want to hell edit it till its right im talking from experience
-
It is, just rarley spoken. may·n't ... Contraction of may not. i know as i just copied this i already thought it sounded really strange to
-
No thats all cars i just want the cars i created with createvehicle
-
is it possible to use like i did it so [team1]=true etc ? cuz its not working please help me team1 = createVehicle ( 470, -1490.802734375, 2642.0087890625, 55.8359375, 0, 0, 0 ) team2 = createVehicle ( 470, -1490.802734375, 2642.0087890625, 55.8359375, 0, 0, 0 ) -- i know same coords just for showing militaryVehicles = { [team1]=true, [team2]=true } militaryTeams = {["Military"]=true,["Naval"]=true} function lockTheHydras(player, seat, jacked) if ( militaryVehicles[getElementModel ( source )] ) and ( getPlayerTeam( player ) ) and ( not militaryTeams[getTeamName(getPlayerTeam( player ))] ) and ( seat == 0 ) then outputChatBox ( "You aren't a Military Officer , you mayn't drive this.", player ) --and tell the player why cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockTheHydras )
-
As its a long time ago i did this i dont know what im doing wrong anymore myMarker = createMarker( 1478.336, 2647.9533691406, 55.8359375, 'cylinder', 2.0, 0, 0, 255, 150 ) function markerHit ( element, dimension ) setElementPosition ( element, 287.85568, 1820.85620, 17.64063 ) end addEventHandler ( 'onmyMarkerHit', myMarker, MarkerHit ) somethign with the expected argument 3 got nil
-
thats the part i dont understand where to place it What you don't understand? This: local server = "Server IP" local user = "MySQL User Name" local password = "MySQL Password" local db = "Database name" local port = "Server Port" -- not your mta sa server port ( default: 3306 ) local socket = "Server Socket" Or the error Bad argument ... ?
-
thats the part i dont understand
-
He told that because he doesnt understand shit about it, i spoke with him today where working together on a server we get an error on the start of swl, its lemme look : [2012-02-26 10:26:54] Starting sql [2012-02-26 10:26:54] WARNING: [gameplay]\sql\mysql.lua:55: Access denied @ 'shutdown' [2012-02-26 10:26:54] ERROR: [gameplay]\sql\mysql.lua:26: attempt to call global 'mysql_connect' (a nil value) [2012-02-26 10:26:54] ERROR: call: failed to call 'sql:query_assoc' [string "?"] [2012-02-26 10:26:54] ERROR: [gameplay]\interior\s_interior.lua:16: bad argument #1 to 'ipairs' (table expected, got boolean) [2012-02-26 10:26:54] Start up of resource sql cancelled by script [2012-02-26 10:26:54] Stopping sql [2012-02-26 10:26:54] start: Resource 'sql' start was requested (Start up of resource cancelled by script )