Jump to content
5nine

[Release] Taxi script v0.2

Recommended Posts

i had this in publicvariable.txt "  !="\"callcab" = \"cab2\"" "   i don't have restriction now.

have the " taxi called " menu but when asked nothing is happening , is this normal or you have to wait a while after Démarage server

Share this post


Link to post
Share on other sites

When  I seat at the cab I have kik with "BE: Script Restriction #40 ". In the scripts.log:

*........ #40 "able ["cabdest",0]>0} or {gotout}; removeAllActions _cab;

deletemarkerLocal _name1;
deletemarkerLocal _name2;
deletemarkerLocal "*
Help Me please
(Sry my English)

Share this post


Link to post
Share on other sites

You need to add the whole line from the log to the txt. Tbh it might be better to avoid function words such as call spawn etc in your vars, makes life a lot easier ;)

 

you are absolutely right, It's changed now. I also updated first post with link to github instead of dropbox. 

 

I actually knew this since I had a player named "Callis" who always got kicked when entering a trader safezone on my dayz epoch server =)

Share this post


Link to post
Share on other sites

 

When  I seat at the cab I have kik with "BE: Script Restriction #40 ". In the scripts.log:

*........ #40 "able ["cabdest",0]>0} or {gotout}; removeAllActions _cab;

deletemarkerLocal _name1;
deletemarkerLocal _name2;
deletemarkerLocal "*
Help Me please
(Sry my English)

 

 

 

Search it's a great tool my friend  

 

 

He has only 1 post. He learned how to post so far. Search training starts at post 10 :)

 

It was actually me who screwed up, i forgot to add that exception when I edited the first post. fixed now

Share this post


Link to post
Share on other sites

can you change the price? I would want it to be costly to do this so they are penalised for taking a cab

 

yes you can! I just added this, check first post for github link and use those files instead. 

Share this post


Link to post
Share on other sites

well, as the error text suggests "a variable has not been defined". system has no clue what to put in its place. it's panicking! normally the way it works is: you define a variable first, then you use it.

 

example:

 

CORRECT USE

number = 5

number + 2 =                 <== this works and gives you 7.

 

WRONG USE

number + 2 =                  <== this gives you that French error. although I have to admit my errors always come up in English,your error is a bit sophisticated speaking foreign languages and all.

 

 

if you want to fix it:

go to the line number mentioned in the error, and

a )  either define it by putting some value (of correct type) in its place

b )  or add a constraint there (if(!(isnil)value) something like that which will mean execute the next statement only if this variable is not nil (which means it is not non-existant).

if you go with option b, you will need to google it & find the exact correct syntax as I am new to scripting too.

 

 

you know what, easier method of fixing it => just wait. probably 5nine will fix it for you when he comes online.

Share this post


Link to post
Share on other sites

i know.

but why I have this error.

the variable "cab1occupied" is defined inside the "NibbleGaming_taxis.pbo" that runs only serverside. 

 

please check your rpt log for the line #NibbleGaming Taxis: Published client variables

 

if you cant find it, you did something wrong when compiling your pbo

Share this post


Link to post
Share on other sites

Hmm got kicked for 'PublicVariable Restriction #0' when calling the taxi, any ideas how to solve this as I followed all the steps, unless it is my AH :/

BattlEye filter auspices not favorable

Share this post


Link to post
Share on other sites

I have a question about the mission.sqm. I can unrap it into a cpp file so I can edit it, but how do I get it back as a .sqm file ...

The best thing to use to decrypt the mission file is Mikero's Tools from https://dev.withsix.com/projects/mikero-pbodll/files

The files you need are:

DeGgg

DePbo

ExtractPbo

MakePbo

 

If you use these to unpack and pack your mission pbo it will auto decrypt on crypt the mission file.

Hope this helps!

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...