Jump to content

IIYAMA

Scripting Moderators
  • Content Count

    5,500
  • Joined

  • Last visited

  • Days Won

    119

IIYAMA last won the day on November 23

IIYAMA had the most liked content!

Community Reputation

1,165 MTA Ambassador

About IIYAMA

  • Rank
    Scripting Moderator & User Guide Contributor
  • Birthday 01/01/2016

Details

  • Gang
    [HB]
  • Location
    Netherlands
  • Occupation
    I have never been to the streets of SA... so who knows?
  • Interests
    Design, scripting, UX/UI

Recent Profile Visitors

12,008 profile views
  1. [20-11-29 15:34:19] WARNING: [vultaic]/v_dm/training_server.lua:5: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] Validation statement is missing [20-11-29 15:34:19] ERROR: [vultaic]/v_dm/arena_event.lua:4: Bad argument @ 'setElementData' [Expected element at argument 1, got nil] Validation statement is missing [20-11-29 15:34:19] Server minclientversion is now 1.5.8-9.20698.3 [20-11-29 15:34:19] WARNING: [vultaic]/v_os/training_server.lua:5: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] Validation statemen
  2. Make sure that the resource 'core' is running.
  3. Hey DiGiTal Summary: Y axis: Y axis position & compute pixel density(scale) X axis: X axis position drawText("$123456789", 140*sx, 648*sy, 0*sx, 0*sy, tocolor(0,0,0,255), 0.8*sy,"bankgothic") drawText("$123456789", <start position>, <start position>, <end position>, <end position>, tocolor(0,0,0,255), <scale>,"bankgothic") Take a look at your code. There are 3 types of arguments. start position (boundingbox) x y end position (boundingbox) x
  4. @Bekao Nice first attempt. You are currently skipping: screen-ratio It might something to take a look at, since your UI will be stretched(in all directions) when other players have a different ratio. In some cases that is fine, but when you do that with an image, it will not look very nice. You are also skipping: "How to create a User Interface" An image is not a User Interface, but it can be come one with the right methods (which are not explained). Either edit the title or add the missing information.
  5. @Tekken Not sure if you already have discovered it, but there is the DxTex tool that can be used to build texture files and compress them with the format you need. https://wiki.multitheftauto.com/wiki/DxCreateTexture Download link
  6. I don't see this function guiGridListSetItemData (not Get), belonging to the following warning/error: In the code you just showed.
  7. Both lines were already inside of your code, at the correct location (before I replied). You only had to change the column id. I have no idea how you managed to get that error.
  8. Try to pass the data on column 0, instead of 1. Maybe that solves the problem. -- IN guiGridListSetItemData(transportGUI.locationgrid, row, 0, Data) -- -- OUT local DestinationData = guiGridListGetItemData(transportGUI.locationgrid, selected, 0)
  9. You can check the variable value type. if type(DestinationData) == "table" then if (getPlayerMoney() >= DestinationData[5]) then --ERROR --[[ ... ]] end end
  10. @[N]inja Moved your topic again to here https://forum.mtasa.com/forum/127-programação-em-lua/
  11. @Turbesz I can see that you are confused by my reply. These are the fragments of a decompiled script: I am not going to start a discussion with you about how those slipped in to your code. When I see reverse-engineered variable names, the topic is locked. (Not the end of the world...)
  12. Your current code contains fragments from a decompiled script. Locked
  13. Moved to here: https://forum.mtasa.com/forum/127-programação-em-lua/
  14. Moved to here: https://forum.mtasa.com/forum/127-programação-em-lua/
  15. Clientside The dangerous part of elementdata is that the programmer might forget that each time it is set (on clientside), it will synchronize with the server and after that it will also synchronize with all other players. The following code is in my opinion to be considered dangerous: addEventHandler("onClientRender", root, function () setElementData(localPlayer, "test", getTickCount()) end) No synchronization steps are skipped (even if the same is the same), therefore if can stack up until no other messages can be send and network error occurs after the buffer is filled
×
×
  • Create New...