• net.ReadString problems
    2 replies, posted
I created an entity, which print on the chat the text sended like that: http://image.noelshack.com/fichiers/2018/23/5/1528458297-telechargement.png if the guy who send the text is in the team A, the whole team A will see in the chatbox "[Radio A] : Need help!" and the opposite team will have a random censure like : "[Radio A] : N*e* **lp*" BTW, I can't use chat hooks But only net.WriteString with chat.AddText() here is my code: lua/entities/radio_pw/cl_init.lua http://image.noelshack.com/fichiers/2018/23/5/1528458780-telechargement-1.png lua/autorun/server/radio_server.lua http://image.noelshack.com/fichiers/2018/23/5/1528458929-telechargement-2.png lua/autorun/client/radio_client.lua http://image.noelshack.com/fichiers/2018/23/5/1528459218-telechargement-3.png And here is my lua error: http://image.noelshack.com/fichiers/2018/23/5/1528459293-telechargement-4.png Ty for helping me!
If you read the error you posted yourself above, it says that string.sub expects a string as a argument and is currently getting nil. If you look at line 7, around where the error is happening, you use "stringtraiter" as the string into the function, but this string doesn't seem to be defined anywhere, which is why the error is happening.
Thank you very much! It work
Sorry, you need to Log In to post a reply to this thread.