Flash Posted April 1, 2011 Share Posted April 1, 2011 hi all i have made a simple script with notepad++ with a meta.xml but when i put it in the ressources but when i open my admin panel in the ressource i didn't find it when i write /start (my-script) they say me couldn't be found this is my script function Flash() x = 5 y = 10 outputChatBox("Flash is a noob he have "..x.." bananas and "..y.."tomatoes", getRootElement(), 255, 255, 255, true) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()),Flash ) and this is meta: "Flash" type="script" name="Flash" description="flash test" /> SO? Link to comment
proracer Posted April 1, 2011 Share Posted April 1, 2011 In meta.xml, script type is server not client. Link to comment
Discord Moderators Zango Posted April 1, 2011 Discord Moderators Share Posted April 1, 2011 furthermore, I think you have to tostring() those x and y values for outputChatBox. Link to comment
Moderators Citizen Posted April 1, 2011 Moderators Share Posted April 1, 2011 furthermore, I think you have to tostring() those x and y values for outputChatBox. No you can make like that You have to create a folder "YourResourceName" ( don't use any spaces in your resource name ! ) Then put in it your test.lua and your meta.xml And replace this: In meta.xml, script type is server not client. Link to comment
Flash Posted April 1, 2011 Author Share Posted April 1, 2011 Thx to proracer And citizen its working nice =DDDD Link to comment
Discord Moderators Zango Posted April 1, 2011 Discord Moderators Share Posted April 1, 2011 furthermore, I think you have to tostring() those x and y values for outputChatBox. No you can make like that My bad, confused it with outputDebugString (that can't take a number value unlike outputChatBox) but I forgot its only if you parse a number not resumed in a string 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