sckatchof Posted April 8, 2012 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
Kenix Posted April 8, 2012 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 http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Edikosh998 Posted April 8, 2012 Posted April 8, 2012 This is an event, command or what? WRS( World Racing Server) [server] = 8%
drk Posted April 8, 2012 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 EPT Team Server Development: 0% Learning C++ | C++ is amazing
Jaysds1 Posted April 8, 2012 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 My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
drk Posted April 8, 2012 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. EPT Team Server Development: 0% Learning C++ | C++ is amazing
Kenix Posted April 8, 2012 Posted April 8, 2012 (edited) _ Edited April 8, 2012 by Guest http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
sckatchof Posted April 8, 2012 Author Posted April 8, 2012 This is an event, command or what? Yes it's Event.
Kenix Posted April 8, 2012 Posted April 8, 2012 In next time show your code with handler.( if exists ) http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Jaysds1 Posted April 8, 2012 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... My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
drk Posted April 8, 2012 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. EPT Team Server Development: 0% Learning C++ | C++ is amazing
Jaysds1 Posted April 8, 2012 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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
drk Posted April 8, 2012 Posted April 8, 2012 LOL? Is there any problem is showing us handlers or explain what he are trying to do? EPT Team Server Development: 0% Learning C++ | C++ is amazing
Jaysds1 Posted April 8, 2012 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 My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
drk Posted April 8, 2012 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. EPT Team Server Development: 0% Learning C++ | C++ is amazing
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