Run time error 4: index out of bounds
PHP Code:
PHP Code:
|
Re: Run time error 4: index out of bounds
First of all, your code is a mess.
You get index out of bounds because the index it's out of range, you should show where is called the public func. |
Re: Run time error 4: index out of bounds
That's some code from my probably bad coded zombie
P.S: sunt roman, daca vrei ma poti ajuta pe dis privat daca iti e mai usor |
Re: Run time error 4: index out of bounds
The function is called when the player gets zombie and i did set_task(1.0,"hud",id + task,_,_,"b")
Edit: May i give full code? Even if it's just a lot of trash in it but yeah At the start i did a new countdown[33], this has something to do with this? |
Re: Run time error 4: index out of bounds
countdown[33] holds 32 indexes, so you need to get users proper id in the task callback function
Code:
public task_callback(taskid) |
Re: Run time error 4: index out of bounds
Quote:
Also, please show the full error code including which line has the error and if possible, highlight it using a comment or @@ at the beginning of the row within [ pawn ] tags |
Re: Run time error 4: index out of bounds
Never mind, the problem in sma was that the taskids we're confused to the player's id so that was the problem, imma reply after im trying to solve.
Edit: also got a question.. If i want to rrmove the task all from once what should i do? |
Re: Run time error 4: index out of bounds
PHP Code:
Doing the same if but with id2 Or PHP Code:
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 |
Re: Run time error 4: index out of bounds
Both are fine.
|
Re: Run time error 4: index out of bounds
Quote:
Quote:
|
All times are GMT -4. The time now is 07:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.