Problems with getting data/setting data
Code:
Maybe you can figure out what this plugin will do b/c I do not feel like explaining it as I am hesitant as to releasing it. It will have no compilation errors/warnings but it gives me run-time errors especially with my arrays being filled by my for loop in my "testPlugin" function. Here is one of the errors I have received: Code:
L 12/22/2005 - 21:45:42: [AMXX] Displaying debug trace (plugin "tester.amxx") |
Code:
|
I dont get how this will help. It crashed my server...
Code:
|
|
Quote:
|
This is a working version of the testPlugin function. However, I think I need help on the second part, the revertBack function. It seems as if it never gets called, even after my set_task for 45 seconds to call it.
Code:
|
Well, there's no ID being passed through the task hooked to revertBack so if it's not displaying the HUD message, that's why.
Also, you need to do length-1 in these functions: Code:
So it'd be: Code:
|
i knew that but I do not know why I did not instantiate it :roll: - thanks v3x
luckily i didn't keep getting indices out of bounds because i set the length to high. It could have given me buffer problems as well. I believe this code is nearly flawless: Code:
|
1 Attachment(s)
the most recent revisions in the top post as well as in the attached SMA.
Alright, as for a description as to what this plugin is "trying" to do: 1. Saves money of the player 2. Saves team of the player 3. Saves Frags of the player 4. Saves Deaths of the player 5. Changes map to the exact same map (using the task) 6. Sets money back 7. Sets team back 8. Sets frags back 9. Sets deaths back Steps 1-9 (except 5) use arrays in for loops in order to accomplish saving and reading data. - and then that leaves all the players happy so that it seems as if they never left. Basically, the whole point of the this plugin is to help us (coders) to save all the data/set all the data back and map back so that we can test our plugin without angering the players. Please help me help all the coders. |
1 Attachment(s)
Recent untested version:
Code:
|
| All times are GMT -4. The time now is 16:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.