Jump to content

Purdi

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Purdi's Achievements

Vic

Vic (3/54)

0

Reputation

  1. It is working, thank you brother. <3 <3 <3
  2. It is working. But it opens when I start the resoure. I want to open the window when I click on the label. local label = guiCreateLabel( 0, 0, screenX, 15, "Purdi "..exports.global:getScriptVersion().."", false )
  3. local screenX, screenY = guiGetScreenSize( ) local label = guiCreateLabel( 0, 0, screenX, 15, "Purdi "..exports.global:getScriptVersion().."", false ) guiSetSize( label, guiLabelGetTextExtent( label ) + 5, 14, false ) guiSetPosition( label, screenX - guiLabelGetTextExtent( label ) - 5, screenY - 27, false ) guiSetAlpha( label, 0.5 ) addEventHandler('onClientMouseEnter', label, function() guiSetAlpha(label, 1) end, false) addEventHandler('onClientMouseLeave', label, function() guiSetAlpha(label, 0.5) end, false) addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), function ( theResource ) if source == getResourceRootElement( theResource ) then local cmd = xmlLoadFile( "altele.xml" ) local cmd1 = xmlNodeGetValue( cmd ) local member = xmlLoadFile( "case.xml" ) local member1 = xmlNodeGetValue( member ) local other = xmlLoadFile( "masini.xml" ) local other1 = xmlNodeGetValue( other ) wnd_create( cmd1, member1, other1 ) end end) addEventHandler('onClientGUIClick', function() function wnd_create(cmd, member, other) GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Memo = {} GUIEditor_Image = {} window = guiCreateWindow(136,130,544,346,"Changelog",false) guiSetAlpha(window,1) guiWindowSetSizable(window,false) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0404,0.2457,0.921,0.6936,true,window) guiSetAlpha(GUIEditor_TabPanel[1],1) tabcmd = guiCreateTab("ALTELE",GUIEditor_TabPanel[1]) guiSetAlpha(tabcmd,1) GUIEditor_Memo[1] = guiCreateMemo(0.008,0.0231,0.984,0.9583,cmd,true,tabcmd) guiSetAlpha(GUIEditor_Memo[1],1) GUIEditor_Tab[1] = guiCreateTab("CASE",GUIEditor_TabPanel[1]) guiSetAlpha(GUIEditor_Tab[1],1) GUIEditor_Memo[2] = guiCreateMemo(0.01,0.0324,0.98,0.9444,member,true,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Memo[2],1) GUIEditor_Tab[2] = guiCreateTab("MASINI",GUIEditor_TabPanel[1]) guiSetAlpha(GUIEditor_Tab[2],1) GUIEditor_Memo[3] = guiCreateMemo(0.008,0.0185,0.982,0.963,other,true,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Memo[3],1) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiMemoSetReadOnly(GUIEditor_Memo[3],true) end end, true) Hi guys, I created a label text and I want to create a window with 3 sections when I click on the label, but I receive the error : attempt to call global 'wnd_create'(a nil value) Please help me. <3
  4. Hi guys. Recently I found some videos on YouTube that linked me to a russian guy who posted a modified Map Editor that includes the 0.3.7 SA-MP Objects without replacing them with the GTA's originals. How can I load them in my server? Or how can I load a new .img in my server? I haven't found any articles on MTA Wiki about my problem. The forum from where I downloaded the client : https://forum.impulse99.com/index.php?threads/sa-mp-0-3-7-objects-to-mta-sa-map-editor-tutorial.1062/
×
×
  • Create New...