Timic Posted January 15, 2011 Posted January 15, 2011 (edited) Hi, I have problem -.- WHY THIS COULDNT WORK?! EDIT: It is fixed! Please lock topic Edited January 16, 2011 by Guest Powered by My in-game nick is |Timic| addEventHandler ( "onPlayerJoin", getRootElement(), function() if (getPlayerName(source) == "Timic") then triggerClientEvent("onTimicJoin",getRootElement()) end end)
SDK Posted January 15, 2011 Posted January 15, 2011 Maybe tell us what this should be? Explain more please Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
Timic Posted January 15, 2011 Author Posted January 15, 2011 This is for race gamemode, but when i login as an admin I see random color (It is for car) Powered by My in-game nick is |Timic| addEventHandler ( "onPlayerJoin", getRootElement(), function() if (getPlayerName(source) == "Timic") then triggerClientEvent("onTimicJoin",getRootElement()) end end)
SDK Posted January 15, 2011 Posted January 15, 2011 Use debugscript 3 and post the complete code .. And I can already tell you that source is probably wrong and should be getPedOccupiedVehicle(player) Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
Timic Posted January 16, 2011 Author Posted January 16, 2011 Fixed! Lock Topic Powered by My in-game nick is |Timic| addEventHandler ( "onPlayerJoin", getRootElement(), function() if (getPlayerName(source) == "Timic") then triggerClientEvent("onTimicJoin",getRootElement()) end end)
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