-.Paradox.- Posted March 31, 2014 Posted March 31, 2014 (edited) Hello guys, can somebody see what's wrong here? attempt to call global 'getPlayerIP' (a nil value) SOLVED Edited March 31, 2014 by Guest If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
-.Paradox.- Posted March 31, 2014 Author Posted March 31, 2014 How? If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
iPrestege Posted March 31, 2014 Posted March 31, 2014 (edited) -- Client Side local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1],row,column ) local player = getPlayerFromName ( playerName ) guiSetText ( GUIEditor.label[3],'IP: '.. getElementData ( player,'iPlayerIP' ) ) -- Server Side addEventHandler ( 'onPlayerJoin',root, function ( ) setElementData ( source,'iPlayerIP',getPlayerIP ( source ) ) end ) Edited March 31, 2014 by Guest
-.Paradox.- Posted March 31, 2014 Author Posted March 31, 2014 I get "IP: false" in the label If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
iPrestege Posted March 31, 2014 Posted March 31, 2014 Copy again and make sure player returning for a player and please use /debugscript 3 , Thanks.
-.Paradox.- Posted March 31, 2014 Author Posted March 31, 2014 attempt to concatenate a boolean value If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
-.Paradox.- Posted March 31, 2014 Author Posted March 31, 2014 (edited) SOLVED Edited March 31, 2014 by Guest If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
Moderators IIYAMA Posted March 31, 2014 Moderators Posted March 31, 2014 Maybe you should send the player name too? https://wiki.multitheftauto.com/wiki/TriggerServerEvent triggerServerEvent ( string event, element theElement, [arguments...] ) triggerServerEvent("mute", player,playerName) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
-.Paradox.- Posted March 31, 2014 Author Posted March 31, 2014 Thanks ILYAMA If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now