Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. setting velocity over around 1.5 has no effect on peds. on vehicles can crash/hang client game. Your code is UGLY. Solution: http://en.wikipedia.org/wiki/Indent_style
  2. 1. your hitPlayer is not always player element. 2. both functions are named the same. 3. calling isPedOnFire without "if" have same sense like replacing this line with "false". means NOTHING. 4. Do you set "Permission to get out" anywhere? And I suggest you to aviod names like this. Don't use spaces etc. Make it short. 5. local player = getPlayerAccount -- better don't call your ACCOUNT element like here - "player" - it's confusing! 6. localPlayer is not defined
  3. dunno how to fix in single, in multi go to settings->advanced->asynchronous loading and switch this to opposite. ATI card? Gta engine seems to dislike some ATI cards.
  4. problems like that can't be caused only by xml i think.. dunno how to help you..
  5. using your ip and port check your ip: http://whatismyip.com/ port: 20031
  6. so only ONE player of all should see the picture at all? i dont think so. every player should see image - his OWN rank. right? or maybe i dont understand how it should work?
  7. local playerSerial = getPlayerSerial(client) -- added, fix if needed local root = getResourceConfig("data.xml") local index = getIndex (getPlayerSerial(client),root) for i , v in pairs ( xmlNodeGetChildren ( root ) ) do local xmlNodeUserSerial = xmlNodeGetAttribute(v,"account") --- added if (xmlNodeUserSerial==playerSerial) then -- added for s , t in pairs ( xmlNodeGetChildren ( v ) ) do local att = xmlNodeGetAttribute ( t, "name" ) local rn = string.lower ( tostring ( nametext ) ) local ra = string.lower ( att ) if ( rn == ra ) then outputChatBox ( "A friend with this name already exist." , client , 255 , 0 , 0 ) return false end end end -- added, lol end
  8. personally i think this gamemode will be .. as other "big" scripts - fail. never finished, etc. you are gathering script from community, maybe add something by yourself.. and you are already at 20%. my gamemode is much more smaller than RPG, and i got to ~24% after 3 weeks of everyday work on scripts (and lol, this doesnt mean i cant script ).. and i have long way to go..
  9. post your small xml example, and i'll show you what you need to change if you dont understand Static-X
  10. try replacing resourceRoot with getResourceRootElement(getThisResource()) also 4th line = fail label = guiCreateLabel( 0, 0, screenX, 15, "Gangsta RPG: "..getVersion(), false ) also - this is all weird..
  11. the most useless scripts in the world: https://community.multitheftauto.com/?p=resources ... ls&id=1279 https://community.multitheftauto.com/?p=resources ... ls&id=1278
  12. i think - yes. but you can remove objects (CLIENT SIDE) (i know that mta streamer are removing them - but you have to rewrite this, and really do destroyObject()) while player is away, and re-create them while player is near
  13. if (getControlState("vehicle_fire") or getControlState("vehicle_secondary_fire")) then
  14. your functions are still called same as variables (image2, image3, image4).. also: you have variable pic in server side - it will cause only one player to see the image (if i actually understood what it shoud do)!! make a table: local pic = { } and read/write values as: pic[playerElement] = false etc
  15. download TeamViewer (you can use portable version) and send me your login data through PM (important, don't post it here!)
  16. download TeamViewer (you can use portable version) and send me your login data through PM (important, don't post it here!)
  17. if (getControlState ( "vehicle_fire" )) then
  18. if you are learning something - make it good
  19. function image3 destroyElement(image3) image3 = guiCreateStaticImage( x,y,50,55, "rang/r3.png", false ) end this if wrong. function HAVE TO be defined with brackets ( ) also you CAN'T name variable same as function! you have function image3, and you are creating variable called image3. and instead of making thousand of events - make one, and pass some arguments to it. like: triggerClientEvent(player, "event", player, my_argument, my_next_argument) --and on client function handler(my_argument, my_next_argument) --create image here, based on argument end addEventHandler("event", getRootElement(), handler)
  20. wait about 1h - when i will get access to bigger monitor i can help you remotely via teamviewer
  21. it's ok. wait about 1h - when i will get access to bigger monitor i can help you remotely via teamviewer
  22. mysql is the best data storage way.. if you can't install it - it doesn't mean it's lame why do you have samp image in avatar O_O
  23. You probably did something wrong then.
  24. You have another ports set in config file Your ports: 22003 UDP 22126 UDP 22005 TCP But it's nice to search before asking, I'm appreciating this
  25. and how long is your server name (currently is down)? i need to know what font should i use to fit text in image
×
×
  • Create New...