
Ludo
Members-
Posts
66 -
Joined
-
Last visited
Everything posted by Ludo
-
Devo fixare il buy map di questo pannello help pls
Ludo replied to keisonp9's topic in Italian / Italiano
Wow! Addiritura triplo post! Viva lo spaaam. Comunque postaci l' errore che ti da ora. -
Devo fixare il buy map di questo pannello help pls
Ludo replied to keisonp9's topic in Italian / Italiano
Magari se ci posti l' errore di debugscript ed usi il tag [lua] capiamo qualcosina in più -
Ti consiglio vivamente di provare CFosSpeed. Io avevo il tuo stesso problema e con questo ho risolto Nel caso ti interessa sapere più cose mandami un PM
-
Scooby thank you again, but the script didn' t work.. I still get the same errors; Infinite running script and Infinite/too long execution. I think the problem is cause the table has too much values.. Correct me if I' m wrong.
-
Man it isn' t don't needed. And yes, i know what gettok does. Maybe you didn' t understand that I tiped... If the ip is 5.100.4.20, with math.adjust it becomes: 005.100.004.020, then using gettok i remove the points and i do a string containin 005100004020. I hope you have understood now.. For Draken: Someone already posted this.. and it doesn' t work, thank you anyway.
-
For example if the Ip is 95.100.4.20 it becomes 95100004020 I need this function or the script won' t work. Anyway i did another function before that, using a different system without table.adjust and it gives me the same error anyway..
-
Yes it works good with less lines. I tested with about 700, but I used "break" after country = IPCode. I don 't know if that affect the work of the script
-
I hope I understood that you said: If you mean a smaller table, yes i did and the script works good. With this table it gives me this errors. Anyway i tried 4 different things: 1 - Table of about 700 lines - Error 2 - Table of about 700 lines using "break" - Good 3 - Table of about 1300 lines - Error 4 - Table of about 1300 lines using "break" - Error
-
Try changing the name of the folder. Seems stupid, but try it I did it. But i keep having the same error. Anyway i typed "script_name" for don' t put the whole long name..
-
Its name is join_quit_changenick(folder)/client.lua(file) Why anyway?
-
Ehm you didn' t change anything except that * Anyway it doesn 't work
-
The errors are in no line. The debugscript just give that i posted
-
Hi everyone. I have a little problem with a script, because it gives me these errors: ERROR: Infinite/too long execution (script_name) Aborting; infinite running script in script_name This script is for get the country code of a player who joins. Anyway here is my script: IPList = { ["31.201.76.0 - 31.201.76.255"] = "AD", --A list of table values (about 1300) } function getPlayerCountry(player) theIP = getPlayerIP(player) IP1 = tostring(math.adjust(tonumber(gettok(theIP, 1, 46)))) IP2 = tostring(math.adjust(tonumber(gettok(theIP, 2, 46)))) IP3 = tostring(math.adjust(tonumber(gettok(theIP, 3, 46)))) IP4 = tostring(math.adjust(tonumber(gettok(theIP, 4, 46)))) IP = tonumber(tostring(IP1..IP2..IP3..IP4)) for ip1, ip2 in pairs(IPList) do if ip1 and ip2 then IPStart = tostring(gettok(ip1, 1, 45)) IPEnd = tostring(gettok(ip1, 2, 45)) IPCode = tostring(ip2) if IPStart ~= "" and IPEnd ~= "" and IPCode ~= "" then IPS1 = tostring(math.adjust(tonumber(gettok(IPStart, 1, 46)))) IPS2 = tostring(math.adjust(tonumber(gettok(IPStart, 2, 46)))) IPS3 = tostring(math.adjust(tonumber(gettok(IPStart, 3, 46)))) IPS4 = tostring(math.adjust(tonumber(gettok(IPStart, 4, 46)))) IPE1 = tostring(math.adjust(tonumber(gettok(IPEnd, 1, 46)))) IPE2 = tostring(math.adjust(tonumber(gettok(IPEnd, 2, 46)))) IPE3 = tostring(math.adjust(tonumber(gettok(IPEnd, 3, 46)))) IPE4 = tostring(math.adjust(tonumber(gettok(IPEnd, 4, 46)))) IPS = tonumber(tostring(IPS1..IPS2..IPS3..IPS4)) IPE = tonumber(tostring(IPE1..IPE2..IPE3..IPE4)) if IP >= IPS and IP <= IPE then flag = IPCode end end end end return flag or "N/A" end math.adjust is a function i use for adjust the numbers, anyway that is not the problem cause i get the errors also if I don 't use it. Can anyone help me please?
-
Penso che continuerò quello che sto facendo ora >_> Comunque No non mi stressa perchè con le macro di notepad++ si fa velocemente. Altro che 3-4 giorni, in circa un ora si potrebbe fare tutto Comunque grazie ancora per l' aiuto, e se mi potessidire dove postare nella sezione globale per il supporto, mi aiuteresti tanto.
-
Grazie della risposta Hunterix, ho già quello che dici tu, o se non è perfettamente uguale comunque è simile... Se ho capito quello che dici è tramite il file .csv, vero? Il problema è che di quello non capisco come aggiungere un range di indirizzi.. E poi secondo me, questo metodo è più preciso perchè comprende TUTTI gli ip che esistono.. Comunque grazie lo stesso per l' aiuto, penso che posterò nella sezione globale sperando che qualcun' altro riesca ad aiutarmi OT: Ho visto i tuoi lavori e sono veramente fatti bene, quindi perchè hai scritto "Conosco il Lua ma non a questo punto"? Secondo me invece lo conosci molto bene, non ti sottovalutare EDIT: La sezione esatta per postare questo problema qual è? Intendo la globale. Grazie ancora
-
Salve a tutti, sono nuovo nella community e questo è il mio primo post. Non ho trovato la sezione "presentazione" o cose simili quindi penso che non ce ne sia bisogno. Comunque siccome è di buona regola presentarsi, vi do una breve descrizione di me: Sono un ragazzo di 13 anni e scripto in lua da circa 5-6 mesi. Me la cavo abbastanza bene anche se le cose che non capisco sono molte, come per esempio le funzioni legate a table. Infatti il mio problema riguarda proprio questo: Ho creato uno script per il joinquit con una tabella, il problema è che non va, perchè nel debugscript mi esce scritto: ERROR: Infinite/too long execution (nome_script) Aborting; infinite running script in nome_script Non capisco cosa ci sia di sbagliato... Comunque lo script serve per trovare la nazione dalla quale entra il giocatore. IPList = { ["31.201.76.0 - 31.201.76.255"] = "AD", --Una serie di valori (circa 1300 quindi circa 1300 linee) } function getPlayerCountry(player) theIP = getPlayerIP(player) IP1 = tostring(math.adjust(tonumber(gettok(theIP, 1, 46)))) IP2 = tostring(math.adjust(tonumber(gettok(theIP, 2, 46)))) IP3 = tostring(math.adjust(tonumber(gettok(theIP, 3, 46)))) IP4 = tostring(math.adjust(tonumber(gettok(theIP, 4, 46)))) IP = tonumber(tostring(IP1..IP2..IP3..IP4)) for ip1, ip2 in pairs(IPList) do if ip1 and ip2 then IPStart = tostring(gettok(ip1, 1, 45)) IPEnd = tostring(gettok(ip1, 2, 45)) IPCode = tostring(ip2) if IPStart ~= "" and IPEnd ~= "" and IPCode ~= "" then IPS1 = tostring(math.adjust(tonumber(gettok(IPStart, 1, 46)))) IPS2 = tostring(math.adjust(tonumber(gettok(IPStart, 2, 46)))) IPS3 = tostring(math.adjust(tonumber(gettok(IPStart, 3, 46)))) IPS4 = tostring(math.adjust(tonumber(gettok(IPStart, 4, 46)))) IPE1 = tostring(math.adjust(tonumber(gettok(IPEnd, 1, 46)))) IPE2 = tostring(math.adjust(tonumber(gettok(IPEnd, 2, 46)))) IPE3 = tostring(math.adjust(tonumber(gettok(IPEnd, 3, 46)))) IPE4 = tostring(math.adjust(tonumber(gettok(IPEnd, 4, 46)))) IPS = tonumber(tostring(IPS1..IPS2..IPS3..IPS4)) IPE = tonumber(tostring(IPE1..IPE2..IPE3..IPE4)) if IP >= IPS and IP <= IPE then flag = IPCode end end end end return flag or "N/A" end math.adjust è una cosa che ho fatto io ma sono sicuro che funzioni. Anche senza quella mi da sempre lo stesso errore, quindi il problema riguarda lo script di per se... Ho provato a mettere "break" con una tabella più piccola e funziona, ma con questa non va più... Spero possiate aiutarmi. Grazie in anticipo!