Jump to content

manuelhimmler

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by manuelhimmler

  1. describe the problem, why it didn't work, here people help other people with a problem not scripting for them
  2. Sry I have an error in the meta.xml delete "models/" from the script line.
  3. Hi People! I downloaded a package for MTA Map Editor. This package contains all the SAMP object like the ENterable LS Office with the clear windows. I take out the script and the dff,txd and col file and put it also to my server, but I have a problem. The ground near the building is not solid, that means you fall through the floor around the building. I researched the problem and found out that this problem is only if the col-File is loaded, then I viewed the col File but the FIle has no false objects in it, only the build wall. I don't know why this problem is there, I hope anybody else can help me. I uploaded a ressource of this building only at: http://www.solidfiles.com/d/61309f4854/
  4. Today I deactivated the Windows 98 / ME COmpatiblity Mode for GTASA, maybe this was the reason, I am testing it. By the way I installed all this things currently.
  5. Hey People! If I play on a server with more people (race server), MTASA is often lagging, but my PC is far good enough for GTASA and my iunternet connection is better (100 MBit/s). Normally I start GTA on one CPU, but today I tried two CPUs, but it have made no difference. By the wy it uses nearly 50% CPU-Perfomance and the RAM nearly 200 MB. When I mean lag, I mean FPS are low. Here is my dxdiag log: http://pastebin.com/KY89rFm7 Here is speedtest.net : For more details ask me.
  6. Dear scripters, I am wondering how I can add a new model to my server or if there are any modelids in GTASA which aren't used. I want to add the neontubes of SA:MP. Thank you.
  7. Sry I tried too, but I have forgotten something. I would do all what you say if it helps me, but maybe I don't think enough about it and then it's wrong what I script. But if I understand it I will script it as you said. All I would say with this is don't think, that I won't follow your tips. If I don't follow your tips than I missunderstand you. Sry for my fucking English.
  8. thanks, but it doesn't works, maybe i am doing something wrong, look at the code on http://pastebin.com/ded8c283
  9. Hi! My question is how can I use mutated vowels in serverside script. In clientside script they are working well, but in serverside script they are different symbols instead of a mutated vowel. PS.: Mutated vowels (ä,ö,ü,Ä,Ö,Ü)
  10. Dear friends, I have scripted a InputBox for my own admin panel and in the function are different parameters and one parameter is also a function. This function is called if I press the "OK-Button" at the InputBox. But the next time I create a InputBox, the old event from the OK-Button should be removed. I think I have scripted all true, but everytime I press OK-Button the event is called as many times as I opened the InputBox. I hope anyone of you find the error in the following code: function showInputBox(title,label,eingabet,abbrechen,func) removeEventHandler("onClientGUIClick", abbrechenbutton, function() guiSetVisible(eingabewindow,false) guiSetInputEnabled(oldinput) showCursor(oldcursor) guiSetEnabled(adminpanel,adminenabled) end ) removeEventHandler("onClientGUIClick", eingabebutton, function() oldfunc() end ) oldinput = guiGetInputEnabled() oldcursor = isCursorShowing() guiSetText(eingabewindow, tostring(title)) guiSetText(eingabegrundlabel, tostring(label)) guiSetText(eingabebutton, tostring(eingabet)) guiSetText(abbrechenbutton, tostring(abbrechen)) guiSetInputEnabled(true) showCursor(true) guiSetVisible(eingabewindow,true) guiBringToFront(eingabewindow) function oldfunc() func() end addEventHandler ("onClientGUIClick",abbrechenbutton, function() guiSetVisible(eingabewindow,false) guiSetInputEnabled(oldinput) showCursor(oldcursor) guiSetEnabled(adminpanel,adminenabled) end ,false) addEventHandler("onClientGUIClick",eingabebutton, function() guiSetVisible(eingabewindow,false) guiSetInputEnabled(oldinput) showCursor(oldcursor) oldfunc() guiSetEnabled(adminpanel,adminenabled) end ,false) end
  11. Use this code in serverside script, I would never use script with deleting something clientside because it maybe gets unsynchron: function destroyVehicle(vehicle) local check=false for i,player in ipairs(getElementsByType("player")) do if getPlayerOccupiedVehicle(player)==vehicle then check=true end end if check==false then destroyElement(vehicle) end end function exitVehicle(vehicle) setTimer(destroyVehicle,30000,1,vehicle) end addEventHandler("onPlayerVehicleExit",getRootElement(),exitVehicle)
  12. I think fxAddSparks and fxAddDebris would be very nice
  13. Thanks, i know the event system, but I never used getPropagated becasue this is only important by GUIs and I don't script GUIs often.
  14. Hi Community! I wanted to script an admin panel for my server but the problem is if I click on the window of a button or more button the event of the buttons of the window get triggered. I don't know why, is this a common problem or could this only be a script error?
  15. addEventHandler ( "onVehicleExplode", getRootElement(), function() setTimer( destroyElement,5000,1,source) end )
  16. Could thr problem be that i create the vehicle with the admin panel but want to destroy it in my own script?
  17. But I want to delete the car, not respawn it.
  18. Hi Community! I have scripted that the vehicles get removed by the script if they exploded destroyElement(vehicle), but the problem is, the vehicles are not removing everytime, I don't what to do, is this a MTA bug or is there a better solution to delete exploded vehicles without this problem.
  19. Hello! If i write this in th server-script text = dxText:create("Hello Whizzes!",0.5,0.5) text:sync() there is no text showing, but if i write the 1. row in the clientscript it works, what is wrong?
  20. It would be very great if there will be a function in clientside scripts to play radiostreams like technobase.fm or anything.
  21. yes, but i think there isnt a solution to use more colors in one textitem isnt it?
  22. yes because the text works but only sometimes not oh sorry: I had forgotten a few functions to write the right player-agrument thanks but isnt there a funcction (an easy) i could use new lines (\n) and two collors or more in one sentence (string)
  23. I have scriptet a text function: function GameTextForPlayer(player,text,milliseconds,r,g,b,zeile) if zeile == nil then zeile=1 end if zeile == 1 then if isTimer(gametimer[1][player]) then killTimer(gametimer[1][player]) textDestroyDisplay(gametext[1][player]) end gametext[1][player] = textCreateDisplay() textDisplayAddObserver(gametext[1][player],player) local scrx = getElementData(player,"player.sx") local scry = getElementData(player,"player.sy") local textItem = textCreateTextItem(tostring(text), 0.5, 0.2875, 0,tonumber(r), tonumber(g), tonumber(b), 255, 3, "center","center",0) textDisplayAddText(gametext[1][player],textItem) gametimer[1][player] = setTimer(textDestroyDisplay,tonumber(milliseconds),1,gametext[1][player]) else if isTimer(gametimer[zeile][player]) then killTimer(gametimer[zeile][player]) textDestroyDisplay(gametext[zeile][player]) end gametext[zeile][player] = textCreateDisplay() textDisplayAddObserver(gametext[zeile][player],player) local scrx = getElementData(player,"player.sx") local scry = getElementData(player,"player.sy") local textItem = textCreateTextItem(tostring(text), 0.5, 0.2875+((zeile-1)*0.045), 0,tonumber(r), tonumber(g), tonumber(b), 255, 3, "center","center",0) textDisplayAddText(gametext[zeile][player],textItem) gametimer[zeile][player] = setTimer(textDestroyDisplay,tonumber(milliseconds),1,gametext[zeile][player]) end end but there is often a error in this row "gametext[1][player] = textCreateDisplay()" called "table index is nil" and then the text is show the whole time, also when I destroy it.
  24. I know the CarInfo in the beginnig btw. I haven't to know it because i write as much data it in a loop as much data it is in the mysql database.
  25. Hi Community! I am here again with my problem! I wanted to write something in a variable: CarInfo[idx]["cModel"] = mysql_result(query,1,1) in the header of the script there is CarInfo={} and the error in the console is "attempt to index field '?' (a nil value) The problem is that I have to define every CarInfo like CarInfo[1]={}, CarInfo[2]={}, isn't there a better and easier solution
×
×
  • Create New...