Jump to content

Noobie scripter with a error.


PARKAH

Recommended Posts

So I looked for a wiki to start MTA scripting, seeming as all the youtube videos were crap and I came across the wiki for MTA Scripting, I followed all the steps and got the resource testing step and came across a error saying;

start: Resource could not be found

Here is the script I made:

local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 
function joinHandler() 
    spawnPlayer(source, spawnX, spawnY, spawnZ) 
    fadeCamera(source, true) 
    setCameraTarget(source, source) 
    outputChatBox("Welcome to My Server", source) 
end 
addEventHandler("onPlayerJoin", getRootElement(), joinHandler) 

(Created using the MTA Script Editor and got the script from the wiki)

Here are some pictures:

KeaKKN1.png

yt84nEG.png

bzRbswY.png

I don't see what I have done wrong, please help! :oops:

Link to comment

-.- ... look at the first picture below :

Opened file: C:\program files\MTA San Andreas 1.3\server\mods\deathmatch\resources\poo\script.lua ..

notice something? poo !

and look at the second pic dir : ...mods\deathmatch\resources\myserver..

two different folders i guess.. or i am wrong

yt84nEG.png

bzRbswY.png

Link to comment
-.- ... look at the first picture below :

Opened file: C:\program files\MTA San Andreas 1.3\server\mods\deathmatch\resources\poo\script.lua ..

notice something? poo !

and look at the second pic dir : ...mods\deathmatch\resources\myserver..

two different folders i guess.. or i am wrong

yt84nEG.png

bzRbswY.png

Huh, good eye.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...