Where is the error?
Guys, I have this part of code:
PHP Code:
Where I mistake? Thanks! |
Re: Where is the error?
HiddenID is not an id of a player. It is an index that you use in playersCT[] to get the id of the player.
Code:
a_players_id = playersCT[HiddenID]EDIT: I see that you did do it correctly in some places . . . did you copy paste this stuff? |
Re: Where is the error?
I'm merging two plugins and fixing his bugs, so this is not a 100% my code...
Both plugins are bugged :( (edit) and abandoned |
Re: Where is the error?
It will probably be much harder than you think if you're not sure about what you are doing. FYI.
Might be easier to start over instead of copy pasting code together. |
Re: Where is the error?
I know. But I am a systems analyst and I'm used to read codes. I am two weeks working on this mod and can say that I only have 3 bugs to finish.
This thread is one. When I launch it, I know I'll have to make many improvements, but I think the hardest part is finishing. I'm starting with scripting, but I'm reading a lot and I think I did a great evolution I could not understand what you meant by your above code. I updated the first post with the all function. |
Re: Where is the error?
What I said was the variable HiddenID means absolutely nothing when used alone. The only way you can make it have any actual meaning is to use it as
playersCT[HiddenID] HiddenID is not a player ID! playersCT[HiddenID] is a player ID. So, is_user_alive(HiddenID) is meaningless. |
Re: Where is the error?
fysiks' words in other words: ( I know, echo... )
[ echo source="fysiks" ] playersCT is an array, which holds player IDs. so there are lots of player IDs in the array, thus if you need one ID, you need to index the array. You could say, I would like the 1st element of the array by this: Code:
playersCT[0]Code:
playersCT[4]To get the 1st element, the method is below: Code:
HiddenID=0;[ end of echo ] :) |
Re: Where is the error?
OK. Now I understand :) I'm a Headstrong rsrsrs...
I'm outta time right now, but will answer with the results later |
| All times are GMT -4. The time now is 10:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.