nissou Posted August 8, 2014 Share Posted August 8, 2014 Hi guys i hope you're fin Today i tried to put walking style in my F1 panel but something went wrong and all the F1 panel cant be uploaded or started (it's not showen) i need help to fix this please this is what i added in Client side --------------------------- -- Walking Style Window --------------------------- function applyWalkStyle( leaf ) if type( leaf ) ~= 'table' then leaf = getSelectedGridListLeaf( wndWalking, 'walkStyle' ) if not leaf then return end end server.setPedWalkingStyle( g_Me, leaf.id ) end function stopWalkStyle() server.setPedWalkingStyle( g_Me, 0 ) end wndWalking = { 'wnd', text = 'Walking style', width = 250, controls = { { 'lst', id = 'walkStyle', width = 230, height = 290, columns = { { text = 'Walking', attr = 'name' } }, rows = { xml = 'walkstyle.xml', attrs = { 'id', 'name' } }, onitemdoubleclick = applyWalkStyle }, { 'btn', id = 'set', onclick = applyWalkStyle }, { 'btn', id = 'stop', onclick = stopWalkStyle }, { 'btn', id = 'close', closeswindow = true } } } function setWalkStyleCommand( cmd, id ) id = id and tonumber( id ) if id then server.setPedWalkingStyle( id ) end end addCommandHandler( 'setwalkstyle', setWalkStyleCommand ) addCommandHandler( 'walkstyle', setWalkStyleCommand ) my walkingstyle.xml <catalog type="walkingstyle"> <walkingstyle id="0" name="MOVE_DEFAULT" /> <walkingstyle id="54" name="MOVE_PLAYER" /> <walkingstyle id="55" name="MOVE_PLAYER_F" /> <walkingstyle id="56" name="MOVE_PLAYER_M" /> <walkingstyle id="57" name="MOVE_ROCKET" /> <walkingstyle id="58" name="MOVE_ROCKET_F" /> <walkingstyle id="59" name="MOVE_ROCKET_M" /> <walkingstyle id="60" name="MOVE_ARMED" /> <walkingstyle id="61" name="MOVE_ARMED_F" /> <walkingstyle id="62" name="MOVE_ARMED_M" /> <walkingstyle id="63" name="MOVE_BBBAT" /> <walkingstyle id="64" name="MOVE_BBBAT_F" /> <walkingstyle id="65" name="MOVE_BBBAT_M" /> <walkingstyle id="66" name="MOVE_CSAW" /> <walkingstyle id="67" name="MOVE_CSAW_F" /> <walkingstyle id="68" name="MOVE_CSAW_M" /> <walkingstyle id="69" name="MOVE_SNEAK" /> <walkingstyle id="70" name="MOVE_JETPACK" /> <walkingstyle id="118" name="MOVE_MAN" /> <walkingstyle id="119" name="MOVE_SHUFFLE" /> <walkingstyle id="120" name="MOVE_OLDMAN" /> <walkingstyle id="121" name="MOVE_GANG1" /> <walkingstyle id="122" name="MOVE_GANG2" /> <walkingstyle id="123" name="MOVE_OLDFATMAN" /> <walkingstyle id="124" name="MOVE_FATMAN" /> <walkingstyle id="125" name="MOVE_JOGGER" /> <walkingstyle id="126" name="MOVE_DRUNKMAN" /> <walkingstyle id="127" name="MOVE_BLINDMAN" /> <walkingstyle id="128" name="MOVE_SWAT" /> <walkingstyle id="129" name="MOVE_WOMAN" /> <walkingstyle id="130" name="MOVE_SHOPPING" /> <walkingstyle id="131" name="MOVE_BUSYWOMAN" /> <walkingstyle id="132" name="MOVE_SEXYWOMAN" /> <walkingstyle id="133" name="MOVE_PRO" /> <walkingstyle id="134" name="MOVE_OLDWOMAN" /> <walkingstyle id="135" name="MOVE_FATWOMAN" /> <walkingstyle id="136" name="MOVE_JOGWOMAN" /> <walkingstyle id="137" name="MOVE_OLDFATWOMAN" /> <walkingstyle id="138" name="MOVE_SKATE" /> </catalog> Link to comment
xXMADEXx Posted August 9, 2014 Share Posted August 9, 2014 Please use the command /debugscript 3 and upload a picture or log of the errors. Link to comment
yoya99 Posted September 2, 2014 Share Posted September 2, 2014 That is my code which spider stole 2 montzhs ago----look at my topic 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