Jump to content
  • 0

getting error on script! please help


nightflower

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  02/18/15
  • Last Seen:  

-----------------------------------------------------

[Warning]: Unexpected type for argument 2. Expected number.

[Debug]: Data: string value="+$@i+"

[Debug]: Function: getelementofarray

[Debug]: Source (NPC): OnPCLogoutEvent (invisible/not on a map)

------------------------------------------------------

 


 

- script OnPCLogoutEvent -1,{

OnPCLogoutEvent:

//-------------------------------

set $@i2,@Tabula_My_number;

for(set $@i,0; $@i<=1; set $@i,$@i+1){//@i<=1 

if ($@i2 > 0 && getd("$@Tabula_User_name_"+$@i2+"$["+$@i+"]") == strcharinfo(0) && getd("$@Tabula_User_die_"+$@i2+"["+$@i+"]") == 0 && $@Tabula_Game_start["+$@i+"] > 0) donpcevent "tabula["+$@i+"]::OnTalk9";

// if (@Tabula_My_number > 0 && getd("$@Tabula_User_name_"+@Tabula_My_number+"$["+@i+"]") == strcharinfo(0) && getd("$@Tabula_User_die_"+@Tabula_My_number+"["+@i+"]") == 0 && $@Tabula_Game_start[@i] > 0) donpcevent "tabula["+@i+"]::OnTalk9";

}

end;

}


 

 

keep getting that error every time I log off 

no idea how to fix it TT please help! 

Edited by nightflower
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

I think it's because of

$@Tabula_Game_start["+$@i+"] > 0) donpcevent

it should be

$@Tabula_Game_start[$@i] > 0) donpcevent
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  02/18/15
  • Last Seen:  

 

I think it's because of

$@Tabula_Game_start["+$@i+"] > 0) donpcevent

it should be

$@Tabula_Game_start[$@i] > 0) donpcevent

thank you solved!! 

Link to comment
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
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.

×
×
  • Create New...