sckatchof Posted April 8, 2012 Share Posted April 8, 2012 hi guys i have problem output dose not show why ? this is server side part : function( skin, playername ) local player = getPlayerFromName(playername) if ( player ) then setElementModel(player, skin) outputChatBox ( "'"..getPlayerName( source ).."' changed your skin to '"..skin.."'!", player, 255, 100, 70 ) else outputChatBox ( "Invalid Nick", source, 255, 0, 0 ) end end Link to comment
Kenix Posted April 8, 2012 Share Posted April 8, 2012 (edited) hi guys i have problem output dose not show why ?this is server side part : function( skin, playername ) local player = getPlayerFromName(playername) if ( player ) then setElementModel(player, skin) outputChatBox ( "'"..getPlayerName( source ).."' changed your skin to '"..skin.."'!", player, 255, 100, 70 ) else outputChatBox ( "Invalid Nick", source, 255, 0, 0 ) end end source nil. and what is it function( skin, playername ) !? Also tabulate your code please. Edited April 8, 2012 by Guest Link to comment
Edikosh998 Posted April 8, 2012 Share Posted April 8, 2012 This is an event, command or what? Link to comment
drk Posted April 8, 2012 Share Posted April 8, 2012 (edited) This is an event, command or what? That's a non-sense script You may want: addCommandHandler ( 'skin', function ( uPed, uCommand, uSkin ) if ( not uSkin ) then return end setElementModel ( uPed, tonumber ( uSkin ) ) outputChatBox ( getPlayerName ( uPed ) .. ' has changed his skin to ' .. uSkin, root, 255, 255, 255, false ) end ) Edited April 8, 2012 by Guest Link to comment
Jaysds1 Posted April 8, 2012 Share Posted April 8, 2012 here: function( skin, playername ) local player = getPlayerFromName(playername) if ( player ) then setElementModel(player, skin) --set the player skin to the skin they wanted outputChatBox ( "'"..getPlayerName(player).."' changed your skin to '"..tostring(skin).."'!", player, 255, 100, 70 ) --output that they have changed their skin else outputChatBox ( "Invalid Nick", player, 255, 0, 0 ) end end Link to comment
drk Posted April 8, 2012 Share Posted April 8, 2012 here:function( skin, playername ) local player = getPlayerFromName(playername) if ( player ) then setElementModel(player, skin) --set the player skin to the skin they wanted outputChatBox ( "'"..getPlayerName(player).."' changed your skin to '"..tostring(skin).."'!", player, 255, 100, 70 ) --output that they have changed their skin else outputChatBox ( "Invalid Nick", player, 255, 0, 0 ) end end That makes no-sense anyway. Link to comment
Kenix Posted April 8, 2012 Share Posted April 8, 2012 (edited) _ Edited April 8, 2012 by Guest Link to comment
sckatchof Posted April 8, 2012 Author Share Posted April 8, 2012 ty jaysds1 for help it's work Link to comment
sckatchof Posted April 8, 2012 Author Share Posted April 8, 2012 This is an event, command or what? Yes it's Event. Link to comment
Kenix Posted April 8, 2012 Share Posted April 8, 2012 In next time show your code with handler.( if exists ) Link to comment
Jaysds1 Posted April 8, 2012 Share Posted April 8, 2012 ty jaysds1 for help it's work np @DrakeN: Just give the person what they want, don't make a big fuss about it... Link to comment
drk Posted April 8, 2012 Share Posted April 8, 2012 I gave him what it seems to be, your and him code makes no sense with no attached command, event, nothing. Link to comment
Jaysds1 Posted April 8, 2012 Share Posted April 8, 2012 I gave him what it seems to be, your and him code makes no sense with no attached command, event, nothing. Cuz, he probably didn't want us to know his whole code. Link to comment
drk Posted April 8, 2012 Share Posted April 8, 2012 LOL? Is there any problem is showing us handlers or explain what he are trying to do? Link to comment
Jaysds1 Posted April 8, 2012 Share Posted April 8, 2012 LOL? Is there any problem is showing us handlers or explain what he are trying to do? Well, he said "i have problem, output does not show... why ?" and the main problem was the output Link to comment
drk Posted April 8, 2012 Share Posted April 8, 2012 If we don't know what's source, how we will help him? And please, stop posting if you don't understand. Link to comment
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