Plugin works (allmost) but how should i have done?
Hi,
I have made a script/plugin that works, allmost as I want it to, there is something wrong with how many "last dissconnect players" it shows. It tends to show 1 to many but that doesn't matter really :p I set out to make the script myselfe, and it works but I need help with tweaking it, my coding is terrible I know but I would like to learn. So if anyone could give me some pointers to how some of the things I have done SHOULD be done I would greatly appreaschiate (spelling?) it. What does the plugin do then, well it saves the last 32 players who dissconnect and when you say "/last" it shows you the last amx_showlast "x" players. (max 10 b/c I cant code propperly) We will use it on our servers when ppl say/do something stupid and drops, especially when several ppl drops at the same time. Enough, here is the code: Code:
|
Re: Plugin works (allmost) but how should i have done?
i think it is the typical "for" problem:
here what i mean: Code:
"<=" mean increase the "i" until it is higher that icountDiss, and this is 33 not 32. and i are increase every loop.A little script to show it. Code:
I make this most also wrong. And a little tip,you can also write this Code:
Code:
Code:
a little better Code:
|
Re: Plugin works (allmost) but how should i have done?
Thank you for your answer :D
I wondered how to get the for-loop to go backwards, but i gave up and did it another way. Thanks :) And I seem never to be able to get the > < = correct, trial and error doesn't allways work :S Thank you again, I will compare our codes and try to learn as much as possible :) +karma! |
| All times are GMT -4. The time now is 04:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.