Jump to content

Sparrow

Members
  • Posts

    378
  • Joined

  • Last visited

Everything posted by Sparrow

  1. 'end' missed on line 26 addEvent ( "del", true ) addEventHandler("del", root, function ( ) if ( not isPedInVehicle ( source ) ) then return end local vehicle = getPedOccupiedVehicle ( source ) if ( not delses [ getElementModel ( vehicle ) ] ) then return end local money = math.random ( 100, 400 ) givePlayerMoney ( source, money ) if getElementHealth(vehicle) > 990 then givePlayerMoney ( source, 50 ) setElementFrozen ( vehicle, true ) setTimer ( function ( ) setElementFrozen ( vehicle, false ) end ,1000, 1 ) getNewdelLocation ( source ) end end )
  2. an "end' was missing function EventGUICat(button) if button == "left" then local Acct = guiGetText(rGUI_EdtCon) local Pass = guiGetText(rGUI_EdtSen) if(#Acct == 0 or #Pass == 0) then outputChatBox("Digite um nome de Conta não registrado e sua respectiva Senha.", 255, 0, 0) return end if((#Acct ~= 0 and #Acct < 4) or (#Pass ~= 0 and #Pass < 4)) then outputChatBox("O nome de Conta e a Senha devem conter no mínimo 4 caracteres.", 255, 0, 0) return end if(callServerFunction("addAccount", Acct, Pass)) then outputChatBox("Registrado.", 255, 0, 0) showCursor(false) guiSetVisible(rGUI_theBox, not guiGetVisible(rGUI_theBox)) guiSetVisible(rGUI_LbLCon, not guiGetVisible(rGUI_LbLCon)) guiSetVisible(rGUI_LbLSen, not guiGetVisible(rGUI_LbLSen)) guiSetVisible(rGUI_EdtCon, not guiGetVisible(rGUI_EdtCon)) guiSetVisible(rGUI_EdtSen, not guiGetVisible(rGUI_EdtSen)) guiSetVisible(rGUI_BtnLog, not guiGetVisible(rGUI_BtnLog)) guiSetVisible(rGUI_BtnCat, not guiGetVisible(rGUI_BtnCat)) guiSetVisible(rGUI_ImgGUI, not guiGetVisible(rGUI_ImgGUI)) else if(callServerFunction("getAccount", Acct)) then outputChatBox("Conta já existente.", 255, 0, 0) else outputChatBox("Erro desconhecido.", 255, 0, 0) end end end end
  3. what you mean? can you explain more?
  4. that will be great, since alot of tunisians found difficulties to use arabic letters on arabic section
  5. ACL قروب ? isObjectInACLGroup ----------- guiCreateWindow guiSetVisible showCursor
  6. createMarker getTeamName getPlayerTeam setElementPosition ----- "onClientMarkerHit"
  7. I'm arabic, but too slow in typing wth arabic words it works jr10 thank you (شكرا )
  8. I'm working in house systel with SQLite, and I got problem. can't find a way to create houses from data base when resource start. SQLite table: executeSQLCreateTable("Houses", "houseID STRING, houseOwner STRING, housePrice STRING, houseX STRING, houseY STRING, houseZ STRING") I try this, but wont work: function createHousesOnStart() local result = executeSQLQuery("SELECT houseID,houseOwner,housePrice,houseX,houseY,houseZ FROM Houses WHERE houseID=?") if (result) and (houseOwner == "None") then house = createPickup(houseX, houseY, houseZ, 3, 1273, 0) else house = createPickup(houseX, houseY, houseZ, 3, 1272, 0) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createHousesOnStart) sorry because I don't speak arabic, I havn't arabic keys on my laptop
  9. when I join I get good fps, after some mins my fps down to 10-
  10. http://pastebin.com/EsXFUHxa
  11. well, this days when I play MTA I get low FPS, this dosn't happend before. my computer: 1 year and 30 days old FUJITSU LIFEBOOK AH530 Intel® Pentium® CPU P6200 @ 2.12GHz 2.13GHz Windows 7 Professionnel service pack 1 RAM: 3GO Graphic card: 1GO pastebin: http://pastebin.com/RNbhYLce
  12. ajouter ton compte dans le group Admin dans ACL et login avec lui dans le jeu
  13. window = guiCreateWindow(0.25,0.2656,0.5107,0.4635,"Help",true) text = guiCreateMemo(0.2792,0.2022,0.6692,0.736,"",true,window) lol1 = guiCreateGridList(0.0363,0.1994,0.2141,0.7331,true,window) guiGridListSetSelectionMode(lol1,2) guiMemoSetReadOnly(text, true) guiGridListAddColumn(lol1,"Page ",0.-- s8) --> guiWindowSetMovable(window,false) guiWindowSetSizable(window,false) guiSetVisible(window,false) showCursor(false) for i = 1, 5 do guiGridListAddRow(lol1) end guiGridListSetItemText(lol1,0,1,"Rules",false,false) guiGridListSetItemText(lol1,1,1,"Commandes",false,false) guiGridListSetItemText(lol1,2,1,"Commandes2",false,false) guiGridListSetItemText(lol1,3,1,"Commandes3",false,false) guiGridListSetItemText(lol1,4,1,"Commandes4",false,false) local item,row = guiGridListGetSelectedItem ( lol1 ) local rulesF = fileOpen("rules.txt", true) local commandesF = fileOpen("commandes.txt", true) local commandes2F = fileOpen("commandes2.txt", true) local commandes3F = fileOpen("commandes3.txt", true) local commandes4F = fileOpen("commandes4.txt", true) local rules = fileRead(rulesF, 500) local commandes = fileRead(commandesF, 500) local commandes2 = fileRead(commandes2F, 500) local commandes3 = fileRead(commandes3F, 500) local commandes4 = fileRead(commandes4F, 500) addEventHandler('onClientGUIClick',root, function() local row,col = guiGridListGetSelectedItem ( lol1 ) if ( row == 0 ) and ( col == 1 ) then guiSetText(text,rules) elseif ( row == 1 ) and ( col == 1 ) then guiSetText(text,commandes) elseif ( row == 2 ) and ( col == 1 ) then guiSetText(text,commandes2) elseif ( row == 3 ) and ( col == 1 ) then guiSetText(text,commandes3) elseif ( row == 4 ) and ( col == 1 ) then guiSetText(text,commandes4) end end ) function showWindow () if (guiGetVisible(window) == true) then guiSetVisible(window, false) showCursor(false) end if (guiGetVisible(window) == false) then guiSetVisible(window, true) showCursor(true) end end bindKey("F1", "down", showWindow)
  14. any errors on debugscript 3? show us how you trigger it
  15. si tu as mis: dans le group admin dans ACL, ils ont une fenetre et ils ont le registre et login
  16. ajouté le nom de fichier .zip de register/login dans l'ACL ADMIN: et pour l'account, login avec ce account car tu l'as mis: [KDS]Dragon_Drift désole pour mon mauvais français
  17. 1- moveObject 2- -- Funtions guiCreateWindow guiCreateButton guiCreateGridList guiGridListAddRow guiGridListSetItemText guiSetVisible givePlayerMoney -- Events 'onMarkerHit' or 'onClientMarkerHit' 'onClientGUIClick'
  18. Sparrow

    fuel gui

    add guiSetVisible(WindowP, false)
  19. give us your problem, so we can help you
  20. local vehicle = createVehicle(vehicleID, 3119.69921875, -762.099609375, 15.300000190735) warpPedIntoVehicle(source, vehicle) change 'source' with element that you use
  21. warpPedIntoVehicle is not only for race
  22. what you mean? if you buy car, you'll spawn on it with: warpPedIntoVehicle
  23. the object created on coordiante: 2185, 1599, 68, it moved when you type /move local bed = createObject(1700, 2185.88037, 1599.43262, 68.71986) function MoveTheObject() moveObject(bed, 3000, 2185, 1599, 70) end addCommandHandler("move", MoveTheObject)
×
×
  • Create New...