Jump to content

Question

Posted

Hi,

I've an error:

parse_line: expect command, missing function name or calling undeclared function

*  384 : 'p'cblockmove getcharid(3),0;

 

it's a script in callfunction.
how to attach player ?

Thx a lot

3 answers to this question

Recommended Posts

  • 1
Posted (edited)

oh I see, I've been trough in something like this, the possible solution is to return back to the script and going back by making a 2nd function after that instruction. Something like this:

-<tab>script<tab>OriginalScript<tab>{ //The one where the function is called
        callfunc("F_function1");
        pcblockmove getcharid(3),0;  // This is where the function will return
        callfunc("F_function2");  // And this will go to the 2nd function
}
 
function<tab>script<tab>F_function1<tab>{
       //Instructions
      return; // Will go back to the original script
 
}
 
function<tab>script<tab>F_function2<tab>{
       //Instructions
}

It will work, but you need to be sure there is not something like an if { } between these 2 functions, because it will not work, if you provide me the full scripts, I can tell you what to add/change.

Edited by eKoh

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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