#Paper Posted September 7, 2011 Share Posted September 7, 2011 Omg, i have a stupid problem, i start my script and in the debugscript i see that it triggers an event but it's not added on clientside, i restart the script and it triggers the event whitout any error, how to make it trigger the event always whitout errors? Link to comment
bandi94 Posted September 7, 2011 Share Posted September 7, 2011 bk i think you added the server side onResource start but the client event only then start downlaoding when oyu restarted it you got no error bk you client side it was downloaded or try to add a timer on server side after the resource start or trigger the server from client when its downlaoded and then from the server again the client Link to comment
#Paper Posted September 7, 2011 Author Share Posted September 7, 2011 mhh, and is there an event that triggers when the download is completed? And i was thinking, if i use onClientPlayerSpawn, is the same? Link to comment
bandi94 Posted September 7, 2011 Share Posted September 7, 2011 onClientResourceStart Link to comment
#Paper Posted September 8, 2011 Author Share Posted September 8, 2011 Anyway, i analized the code and there is not any triggerClientEvent into an onResourceStart, they are on: onGamemodeMapStart onPlayerWasted And another triggerClientEvent is in a function called by onPlayerWasted So, the problem can't be fixed whit onClientResourceStart Link to comment
BinSlayer1 Posted September 8, 2011 Share Posted September 8, 2011 either server calls a clientside event while your client is still downloading or your clientside code lacks addEvent('blahblah', true) Link to comment
qaisjp Posted September 8, 2011 Share Posted September 8, 2011 either server calls a clientside event while your client is still downloading or your clientside code lacks addEvent('blahblah', true) Link to comment
JR10 Posted September 8, 2011 Share Posted September 8, 2011 It doesn't have to be onResourceStart, it might be on an event, that is executed too early. "onGamemodeMapStart" , maybe that? Link to comment
#Paper Posted September 8, 2011 Author Share Posted September 8, 2011 It doesn't have to be onResourceStart, it might be on an event, that is executed too early."onGamemodeMapStart" , maybe that? Whit what event i can sostitute this? Link to comment
BinSlayer1 Posted September 8, 2011 Share Posted September 8, 2011 It's not something you can "substitute" .. You need to find and match the logic of your program If you want us to help you more, you'll have to post the code 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