-
Posts
105 -
Joined
-
Last visited
Everything posted by Tockra
-
The rest of the code run
-
Hello guys, thats my script : http://pastebin.com/tR18ihMe But the gamemod name and the map name will not change...
-
? What shall i do? I didnt do anything. Its the original race resource
-
I want test a map, which i made for the race resource... If i start the race resource and when i connect on the server nothing happenz. By Mapname is : Map: None and it wont change... In the Console is then this error : €: I not edited the resource. I have the newest version
-
hi i need help. When i start the race script and join the server i get a error in the console : "ERROR: race\modes\base.lua:89: attempt to index global 'g_GameOptions' (a nil value) " Here is the line: local text = g_GameOptions.randommaps and 'Next map starts in:' or 'Vote for next map starts in:'
-
Thank you i need really your contact datas
-
Thank... Know someone how i can caliculate perfect curves ? The ped shall drive a curve and shall on the right street site after the curve ...
-
Hi guys, i use this code: function OnPlayerConnect() bindKey ( "u", "both", botMove ) bindKey ( "k", "both", rechts ) bindKey ( "h", "both", links ) bindKey ( "j", "both", back ) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), OnPlayerConnect) function botMove(key,keystate) bot = getElementByID ( "bot" ) if(keystate == "down") then setPedControlState ( bot, "forwards", true ) elseif(keystate == "up") then setPedControlState ( bot, "forwards", false ) end end function rechts(key,keystate) if(keystate == "down") then setPedControlState ( bot, "vehicle_right", true ) elseif(keystate == "up") then setPedControlState ( bot, "vehicle_right", false ) end end function links(key,keystate) if(keystate == "down") then setPedControlState ( bot, "vehicle_left", true ) elseif(keystate == "up") then setPedControlState ( bot, "vehicle_left", false ) end end function back(key,keystate) if(keystate == "down") then setPedControlState ( bot, "backwards", true ) elseif(keystate == "up") then setPedControlState ( bot, "backwards", false ) end end h and k run but u and j dont run...
-
Is that okay, too ? : local x,y = guiGetScreenSize() local x2,y2 = 0.2758 * 1280, 0.1572 *1024 local s,d = 0.3562*x, 0.3643*y wnd_login = guiCreateWindow(s,d,x2,y2,"Login",false) Or what is here wrong?
-
Hi Guys, i have a little / big problem, which Related to the resolution . When i made my guis, i made they relativ and i thought it was a good Solution . Now i have a problem with the login gui ! It should be like that (1280 x 1024 ): http://www.pic-upload.de/view-6373937/orig.png.html]http://www3.pic-upload.de/16.07.10/3ip9dojnsjj.png But it looks like that with my new display( 24 Zoll 16:9 ) (1920 x 1080 ) : http://www.pic-upload.de/view-6373939/falsch.png.html]http://www3.pic-upload.de/16.07.10/ipgnwqy3q8zh.png I hope you see the differents and you can say me how i can stop differents like these... I hope someone can understand me and help me ^^
-
Oh sry, that im so annoying. I skimmed the wiki of curse but i dont found this parameter ^^ Sry... And thank you.
-
Hello Guys, how can i create a command, which is evers triggered, when its written, egal if it is big written or small or else... example: /test /TEST /teSt .. They should all be usable, but i want not add lots of Command Handlers with all Variants...
-
Okay thank you... One other question, exist a function, who make returns with all variant a table or must i do it alone, already ?
-
Hello Guis, i want do ask, how i can make out "h" "H" with an lua function? Is it doable? I want build a function, who returns from a string all variants of big and small letters Like : "te" = "te","tE","Te","TE"
-
Hello guis, i want create a point system for the Race ressource. I have some question. Where is the Event"onPlayerFinish" and "onPlayerPickUpRacePickup" and "onPlayerRaceWasted" and ... added ? I dont find it... (in which file)
-
Because that dont run ... false is advanced setting... Other question, cant i use getPlayerNametagText for that? €: That run : ..or string.find(playerN,"[abc]",1,true but i dont know why
-
so? : string.find(playerN,"[ABC]",1,false) ?
-
Hello guys, i want, that a player with a special clan tag can't connect (ABC). Because this i made a script : http://pastebin.com/Vsn6s6SW There isnt a problem, but i want that a guy, who connects with the Clan tag "abc" cant connect,too because that i made this: http://pastebin.com/AxzgLiJh But that want not run ! Need help...
-
Can i edit this data?
-
Okay i can use the sql function, but where and how do mta save the sql datas?
-
Okay this is the script : http://pastebin.com/EC4ZgdFg And this is in the Chatbox : Connect... 1 Tockra Tim Popel And this is the txt: http://www.file-upload.net/download-265 ... t.txt.html PS: Why should i use a xml or sql ? Where is it different?
-
Hello guys, i want create a script, which kicks everybody, who isn't in a special file, which is saved on the server. The problem is, how can i get the string from https://wiki.multitheftauto.com/wiki/FileRead in a table?
-
Why should that help me? There is never used the variable x and y
-
Hey guys, i heard a alternative for the gui function relative exist... I heard i must calculate the absolut x and y positions with guiGetScreenSize()... I want create a gui which dont change by an other screensize
-
Okay thx i will test it again ^^ €: Now comes ERROR: attempt to call global IsYearALeapYear (a nil value) look like very buggy function o0 ? €²: Sorry my failor, i used the wrong function in my script ...