Jump to content

Chickelon12

Members
  • Posts

    44
  • Joined

  • Last visited

Details

  • Gang
    None

Chickelon12's Achievements

Rat

Rat (9/54)

0

Reputation

  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 )
×
×
  • Create New...