Jump to content

Chickelon12

Members
  • Posts

    44
  • Joined

  • Last visited

Everything posted by Chickelon12

  1. i am not talking about the data, i am talking about the 'guiSetText', will it change the text to the my data so i only can see it, or it changes the text to everyone ?
  2. Now it's working thanks,, just a question is anyone going to open the gui will find his account data (arrests.count) or mine ??
  3. bad argument @ 'getPlayerTeam' [expected player argument 1, got nil] bad argument @ 'getTeamName'
  4. Not working bad argument @ 'guiSetText' [expected string at argument 2, got boolean]
  5. setting the arrests label text, to the player's data local getdata = getAccountData(theAccount, "Arrests.count") guiSetText ( arrests_lab2, getdata )
  6. I have made a police computer to tell me how many arrests i got and to show all criminals online in the server,, problem is that it totally not working, i checked the code many times cannot get the problem.. --Client function createwindow(theAccount, getdata) if ( guiGetVisible ( window1 ) == false ) then playerTeam = getPlayerTeam ( source ) if getTeamName(playerTeam) == "Police" then guiSetVisible (window1, true) triggerServerEvent ( "setarrests", localPlayer, playerTeam) guiSetText ( arrests_lab2, getdata ) else if ( guiGetVisible ( window1 ) == true ) then guiSetVisible (window1, false) end end end end addCommandHandler ( "pcomp", createwindow ) --Server function getdatas() theAccount = getPlayerAccount ( source ) local getdata = getAccountData(theAccount, "Arrests.count") end addEvent("setarrests", true) addEventHandler("setarrests", root, getdatas) There is no shown errors ( i know my code is nasty, i am still learning )
  7. Thanks guys, i appreciate it.
  8. i didn't understand anything from the wiki, it seems to be very hard for me... i am not experienced enough to understand the wiki's code,, may someone can explain it for me in a simple way ??
  9. How can i make some gui animations ?
  10. Well, i downloaded it,, thought that he is gonna install it automatically, anyway, Thanks.. i installed it and MTA/GTA are now working
  11. Please, why is no one responding,,, i want to test some scripts... Again, i have installed VMware player, made a VM there using win7, i copied GTA from my pc into the VM,, when i run GTA:SA or MTA they don't even startup, with MTA it just show the logo, and if i open the task manager i see gtasa.exe but it closes after a while without starting up. may someone help me please,,, i couldn't always have someone to test things with me...
  12. Thanks mate, it's working now
  13. Okay, added the resource to the acl Secondly : should i change triggerServerEvent ( "accLogin", localPlayer ) to triggerServerEvent ( "accLogin", localPlayer, username, password ) ??
  14. I installed the antivirus but still nothing, The VM display settings http://i.imgur.com/mHkpRgR.png I even tried to run GTA:SA singleplayer it didn't work ( it's the same copy in my pc which should be working )
  15. DxDiag ------------------ System Information ------------------ Time of this report: 3/24/2014, 16:44:33 Machine name: WIN-7DFHPSH7M9R Operating System: Windows 7 Home Basic 32-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_rtm.101119-1850) Language: English (Regional Setting: English) System Manufacturer: VMware, Inc. System Model: VMware Virtual Platform BIOS: PhoenixBIOS 4.0 Release 6.0 Processor: Intel(R) Pentium(R) CPU G645 @ 2.90GHz, ~2.9GHz Memory: 1024MB RAM Available OS Memory: 1024MB RAM Page File: 698MB used, 1349MB available Windows Dir: C:\Windows DirectX Version: DirectX 11 DX Setup Parameters: Not found User DPI Setting: Using System DPI System DPI Setting: 96 DPI (100 percent) DWM DPI Scaling: Disabled DxDiag Version: 6.01.7601.17514 32bit Unicode ------------ DxDiag Notes ------------ Display Tab 1: No problems found. Sound Tab 1: No problems found. Input Tab: No problems found. -------------------- DirectX Debug Levels -------------------- Direct3D: 0/4 (retail) DirectDraw: 0/4 (retail) DirectInput: 0/5 (retail) DirectMusic: 0/5 (retail) DirectPlay: 0/9 (retail) DirectSound: 0/5 (retail) DirectShow: 0/6 (retail) --------------- Display Devices --------------- Card name: Standard VGA Graphics Adapter Manufacturer: (Standard display types) Chip type: V M ware, Inc. VBE support 2.0 DAC type: 8 bit Device Key: Enum\PCI\VEN_15AD&DEV_0405&SUBSYS_040515AD&REV_00 Display Memory: n/a Dedicated Memory: n/a Shared Memory: n/a Current Mode: 800 x 600 (32 bit) (1Hz) Monitor Name: Generic Non-PnP Monitor Monitor Model: Monitor Id: Native Mode: Output Type: Driver Name: vga Driver File Version: 6.01.7600.16385 (English) Driver Version: 6.1.7600.16385 DDI Version: unknown Driver Model: unknown Driver Attributes: Final Retail Driver Date/Size: 7/14/2009 01:25:51, 10752 bytes WHQL Logo'd: Yes WHQL Date Stamp: Device Identifier: {D7B71B4D-4745-11CF-1C36-B539AEC2CB35} Vendor ID: 0x15AD Device ID: 0x0405 SubSys ID: 0x040515AD Revision ID: 0x0000 Driver Strong Name: Unknown Rank Of Driver: Unknown Video Accel: Deinterlace Caps: n/a D3D9 Overlay: n/a DXVA-HD: n/a DDraw Status: Not Available D3D Status: Not Available AGP Status: Not Available ------------- Sound Devices ------------- Description: Speakers (High Definition Audio Device) Default Sound Playback: Yes Default Voice Playback: Yes Hardware ID: HDAUDIO\FUNC_01&VEN_15AD&DEV_1975&SUBSYS_15AD1975&REV_1001 Manufacturer ID: 1 Product ID: 65535 Type: WDM Driver Name: HdAudio.sys Driver Version: 6.01.7601.17514 (English) Driver Attributes: Final Retail WHQL Logo'd: Yes Date and Size: 11/20/2010 23:29:03, 304128 bytes Other Files: Driver Provider: Microsoft HW Accel Level: Basic Cap Flags: 0xF1F Min/Max Sample Rate: 100, 200000 Static/Strm HW Mix Bufs: 1, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No --------------------- Sound Capture Devices --------------------- Description: Microphone (High Definition Audio Device) Default Sound Capture: Yes Default Voice Capture: Yes Driver Name: HdAudio.sys Driver Version: 6.01.7601.17514 (English) Driver Attributes: Final Retail Date and Size: 11/20/2010 23:29:03, 304128 bytes Cap Flags: 0x1 Format Flags: 0xFFFFF ------------------- DirectInput Devices ------------------- Device Name: Mouse Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Keyboard Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Poll w/ Interrupt: No ----------- USB Devices ----------- + USB Root Hub | Vendor/Product ID: 0x15AD, 0x0774 | Matching Device ID: usb\root_hub | Service: usbhub | Driver: usbhub.sys, 11/20/2010 23:29:03, 258560 bytes | Driver: usbd.sys, 7/14/2009 01:51:05, 5888 bytes | +-+ Generic USB Hub | | Vendor/Product ID: 0x0E0F, 0x0002 | | Location: Port_#0002.Hub_#0001 | | Matching Device ID: usb\class_09 | | Service: usbhub | | Driver: usbhub.sys, 11/20/2010 23:29:03, 258560 bytes ---------------- Gameport Devices ---------------- ------------ PS/2 Devices ------------ + Standard PS/2 Keyboard | Matching Device ID: *pnp0303 | Service: i8042prt | Driver: i8042prt.sys, 7/14/2009 01:11:24, 80896 bytes | Driver: kbdclass.sys, 7/14/2009 03:20:36, 42576 bytes | + Terminal Server Keyboard Driver | Matching Device ID: root\rdp_kbd | Upper Filters: kbdclass | Service: TermDD | Driver: i8042prt.sys, 7/14/2009 01:11:24, 80896 bytes | Driver: kbdclass.sys, 7/14/2009 03:20:36, 42576 bytes | + PS/2 Compatible Mouse | Matching Device ID: *pnp0f13 | Service: i8042prt | Driver: i8042prt.sys, 7/14/2009 01:11:24, 80896 bytes | Driver: mouclass.sys, 7/14/2009 03:20:44, 41552 bytes | + HID-compliant mouse | Vendor/Product ID: 0x0E0F, 0x0003 | Matching Device ID: hid_device_system_mouse | Service: mouhid | Driver: mouhid.sys, 7/14/2009 01:45:08, 26112 bytes | Driver: mouclass.sys, 7/14/2009 03:20:44, 41552 bytes | + HID-compliant mouse | Vendor/Product ID: 0x0E0F, 0x0003 | Matching Device ID: hid_device_system_mouse | Service: mouhid | Driver: mouhid.sys, 7/14/2009 01:45:08, 26112 bytes | Driver: mouclass.sys, 7/14/2009 03:20:44, 41552 bytes | + Terminal Server Mouse Driver | Matching Device ID: root\rdp_mou | Upper Filters: mouclass | Service: TermDD | Driver: termdd.sys, 11/20/2010 23:29:03, 53120 bytes | Driver: sermouse.sys, 7/14/2009 01:45:08, 19968 bytes | Driver: mouclass.sys, 7/14/2009 03:20:44, 41552 bytes ------------------------ Disk & DVD/CD-ROM Drives ------------------------ Drive: C: Free Space: 48.0 GB Total Space: 61.4 GB File System: NTFS Model: VMware, VMware Virtual S SCSI Disk Device Drive: D: Model: NECVMWar VMware SATA CD01 ATA Device Driver: c:\windows\system32\drivers\cdrom.sys, 6.01.7601.17514 (English), 11/20/2010 23:29:03, 108544 bytes -------------- System Devices -------------- Name: Intel 82371AB/EB PCI to ISA bridge (ISA mode) Device ID: PCI\VEN_8086&DEV_7110&SUBSYS_197615AD&REV_08\3&2B8E0B4B&0&38 Driver: C:\Windows\system32\DRIVERS\msisadrv.sys, 6.01.7600.16385 (English), 7/14/2009 03:20:43, 13888 bytes Name: PCI Express standard Root Port Device ID: PCI\VEN_15AD&DEV_07A0&SUBSYS_07A015AD&REV_01\3&2B8E0B4B&0&C3 Driver: C:\Windows\system32\DRIVERS\pci.sys, 6.01.7601.17514 (English), 11/20/2010 23:29:03, 153984 bytes Name: PCI Express standard Root Port Device ID: PCI\VEN_15AD&DEV_07A0&SUBSYS_07A015AD&REV_01\3&2B8E0B4B&0&BB Driver: C:\Windows\system32\DRIVERS\pci.sys, 6.01.7601.17514 (English), 11/20/2010 23:29:03, 153984 bytes Name: PCI Express standard Root Port Device ID: PCI\VEN_15AD&DEV_07A0&SUBSYS_07A015AD&REV_01\3&2B8E0B4B&0&B3 Driver: C:\Windows\system32\DRIVERS\pci.sys, 6.01.7601.17514 (English), 11/20/2010 23:29:03, 153984 bytes Name: PCI Express standard Root Port Device ID: PCI\VEN_15AD&DEV_07A0&SUBSYS_07A015AD&REV_01\3&2B8E0B4B&0&AB Driver: C:\Windows\system32\DRIVERS\pci.sys, 6.01.7601.17514 (English), 11/20/2010 23:29:03, 153984 bytes Name: Standard VGA Graphics Adapter Device ID: PCI\VEN_15AD&DEV_0405&SUBSYS_040515AD&REV_00\3&2B8E0B4B&0&78 Driver: C:\Windows\system32\DRIVERS\vgapnp.sys, 6.01.7600.16385 (English), 7/14/2009 01:25:49, 26112 bytes Name: Intel(R) PRO/1000 MT Network Connection Device ID: PCI\VEN_8086&DEV_100F&SUBSYS_075015AD&REV_01\4&3AD87E0A&0&0888 Driver: n/a Name: PCI Express standard Root Port Device ID: PCI\VEN_15AD&DEV_07A0&SUBSYS_07A015AD&REV_01\3&2B8E0B4B&0&C2 Driver: C:\Windows\system32\DRIVERS\pci.sys, 6.01.7601.17514 (English), 11/20/2010 23:29:03, 153984 bytes
  16. The title says all, i have downloaded VMware, made a virtual machine there, copied GTASA from my comp into there installed MTA:SA, when i run MTA, it notice me that i don't have an antivirus, and asks me if i want to use bootnet or smthing like this,, when i check it mta doesn't start just the logo appears and the same if i am not it's not checked ( the use bootnet thing ) Edit: MTA says : "i will not install an antivirus, i want my pc to lag and be part of a botnet"
  17. Finally i know now how will i do it,, thank you guys,, now it is working and it outputs the old value and the new one, so i think it works. i will try now to use it in a form of a police computer.
  18. JR10, the output and the setaccountdata are not working, debugscript is not showing anyerrors
  19. Well, i got what you said, but still didn't get what should i write in the script like this ? function seta( thePlayer, arg1 ) theAccount = getPlayerAccount ( thePlayer ) if not isGuestAccount ( theAccount ) then local theData = getAccountData(theAccount, "Test.criminalsJailed") if(theData == true) then local setData = setAccountData(theAccount, "Test.criminalsJailed", amountJailed, arg1 ) outputChatBox("Testsset") elseif (theData == false) then outputChatBox("Failed to set your arrests number") end end end addCommandHandler ( "setar", seta ) btw it is not working and debug is not showing erros
  20. Thank you,, you're the best... Sorry, i am going to fatigue you,, for the arrest count, i wanted to try your code but i just have a question function test(thePlayer) theAccount = getPlayerAccount ( thePlayer ) if not isGuestAccount ( theAccount ) then local theData = getAccountData(theAccount, "Test.criminalsJailed") if(theData == false) then local setData = setAccountData(theAccount, "Test.criminalsJailed", amountJailed) if(setData ~= false) then outputChatBox("Data successfully set! Amount Jailed: ["..tostring(amountJailed).."]") else outputChatBox("Failed to set data, check debug!") end else outputChatBox("Data was already set, old value: ["..tostring(theData).."]") local updateData = setAccountData(theAccount, "Test.criminalsJailed", amountJailed) if(updateData ~= false) then outputChatBox("Successfully updated data! Amount Jailed: ["..tostring(amountJailed).."]") else outputChatBox("Failed to update data, check debug!") end end end end addCommandHandler ( "arrests", test ) everytime i write /arrests, it says Data successfully set! Amount Jailed: [nil] -- First time Data was already set, old value: [nil] -- second time Successfully updated data! Amount Jailed: [nil] So it was [nil] because he didn't arrest anyone but how to make it grow like if someone writes /seta number what i have thought but i am quite sure it won't work i am not at home so i can't test it function seta( thePlayer, arg1 ) theAccount = getPlayerAccount ( thePlayer ) if not isGuestAccount ( theAccount ) then local theData = getAccountData(theAccount, "Test.criminalsJailed") if(theData == true) then local setData = setAccountData(theAccount, "Test.criminalsJailed", arg1 ) outputChatBox("Test") elseif (theData == false) then outputChatBox("Failed to set your arrests number") end end end addCommandHandler ( "setar", seta )
  21. Chickelon12

    [Bribe]

    for index = 1 what does this mean and when i have to change numbers in there ? i am planning on doing a similar thing but not the same subject, so i wanna learn how to make those things
  22. Chickelon12

    MTA Problem

    i found out why, i just can open 1 mta in the system,, so when i open from the new user i can't open from the old, same if i opened from the old user,, but is there a way to make it happen ?? EDIT: i read some posts and knew that switching users is disabled but i cannot install virtualbox for a reason, is there another program that could help ?
  23. Chickelon12

    MTA Problem

    Okay, i wanted to find a way to run multipleclients, so i tried to do it with virtual machine, but i got a error on installing it so i followed the way solidsnake mention but now everytime i run MTA it stops working "Multi theft auto launcher has stopped working" that only happens in the old user but in the new user it just works fine when i show the error details i tried to install mta 2 times as i open 1 from the new user and the other from the old user but that didn't work,, please i need help ASAP
  24. well, i wanted to do a similar thing but idk which functions should i use, i am not reqeusting someone to do it i just want to know what functions should i use ?
×
×
  • Create New...