View Single Post
AnimalMonster
Senior Member
Join Date: May 2020
Old 08-02-2020 , 12:15   Re: Run time error 4: index out of bounds
Reply With Quote #8

PHP Code:
Funtion(task)
{
      new 
id task taskid
      
new id1 task taskid1
      
if(task_exists(id))
      {
              
remove_task(id)
      }
      
//...

After first if
Doing the same if but with id2
Or
PHP Code:
Function(task)
{
      New 
id task taskid
      
If(task_exists(id))
      {
              
remove_task(id))
      }
      
id task taskid1
      
If(task_exists(id))
      {
              
remove_task(id)
      }

If i do this , that can confuse the plugin i think.




Edit: i know it s a stupid question but yesh, and ik you guys will say the the firdt one is good and the bad one is the ladt one

Last edited by AnimalMonster; 08-02-2020 at 12:29.
AnimalMonster is offline