BrianNZ Posted January 24, 2008 Share Posted January 24, 2008 this is were it starts(toggles the window that the info is displayed in. Client function guiToggleVisibleCharSheet ( ) --guiSetText(nameLabel, "Name: " .. guiGetText ( name )) --guiSetText(ageLabel, "Age: " .. guiGetText ( age )) outputDebugString ( "PlayerJoin" ) triggerServerEvent ( "SendMyInfo", getLocalPlayer() ) guiSetText(genderLabel, "Sex: " .. guiGetText ( gender )) if ( guiGetVisible ( charSheet ) == true ) then guiSetVisible ( charSheet, false ) else guiSetVisible ( charSheet, true ) end end Then it calls this(the info has been removed or "commented" while i was trying to find the problem.) Server function SendMyInfo ( ) outputDebugString ( "send my info" ) --triggerClientEvent ( source, "something", getRootElement(), players[getID(source)].name, players[getID(source)].age, players[getID(source)].serisl ) --triggerClientEvent ( source, "something", getRootElement()) triggerClientEvent ( "updateStats", source, getRootElement()) --, "boo", "boo1", "ggg" end addEvent ( "SendMyInfo" , true ) addEventHandler ( "SendMyInfo", root, SendMyInfo ) Then, it "should" trigger the next thing. but it doesn't seem to.) Client function updateStats ( ) --newb1, newb2,newb3 outputChatBox ( "got my info") --guiSetText(nameLabel, "Name: " .. newb1 .. newb3) --guiSetText(ageLabel, "Age: " .. newb2) end addEvent ( "updateStats" , true ) addEventHandler ( "updateStats", root, updateStats ) Any ideas whats ahppening? Link to comment
KillFrenzy Posted January 24, 2008 Share Posted January 24, 2008 try this: triggerClientEvent ( source, "updateStats", root ) Link to comment
BrianNZ Posted January 24, 2008 Author Share Posted January 24, 2008 nope, still not working it makes no sense, it SHOULD work. Link to comment
mabako Posted January 24, 2008 Share Posted January 24, 2008 type 'debugscript 3' in the client and try if it outputs some errors/infos that show what's not working correctly, e.g. wrong parameters or an error somewhere else in the script Link to comment
BrianNZ Posted January 24, 2008 Author Share Posted January 24, 2008 when i place debugscript 3 at the topin the functionin the client hud script at all. The GUI is not displayed. on a side note at http://forum.samp-host.net/ the irc link, irc.cml is not working Link to comment
eAi Posted January 25, 2008 Share Posted January 25, 2008 you should type debugscript 3 in the console. Link to comment
BrianNZ Posted January 25, 2008 Author Share Posted January 25, 2008 <3 eAi your my hero 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