nightflower Posted February 27, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/18/15 Last Seen: May 11, 2015 Share Posted February 27, 2015 (edited) ----------------------------------------------------- [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 February 27, 2015 by nightflower Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 27, 2015 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 27, 2015 I think it's because of $@Tabula_Game_start["+$@i+"] > 0) donpcevent it should be $@Tabula_Game_start[$@i] > 0) donpcevent Quote Link to comment Share on other sites More sharing options...
nightflower Posted February 28, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 02/18/15 Last Seen: May 11, 2015 Author Share Posted February 28, 2015 I think it's because of $@Tabula_Game_start["+$@i+"] > 0) donpcevent it should be $@Tabula_Game_start[$@i] > 0) donpcevent thank you solved!! Quote Link to comment Share on other sites More sharing options...
Question
nightflower
Edited by nightflower
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.