Jagex_Fagex
2006-03-11 07:12:46
Im really having trouble with the players thing.
Things i need help with:
Declaring of players
The next player thing
current player thing, and pretty much everything to do with it.
Sdcit
2006-03-11 10:44:54
1. Did you read the tutorial?
2. hm…
Make a procedure and put the following in it.
HowManyPlayers:= // howm any players usually declared in const
NumberOfPlayers(HowManyPlayers); // sets arraylength
then you have Players as a arrays.
for the number set in the numberofplayers-1 starting at 0, you do something like
Players[0].Name :='starshark';
Players[0].Pass :='sdf';
Players[0].Nick :='tar';
Players[0].Loc :='AnyWhere';//optional
Players[0].Active:= true;//optional
Players[0].Skill := 'hi'// optional
and continue adding 1 to the number between the [] till you get to the NumberofPlayers-1
Then in the main loop you declare that procedure
after you decalre that you go
CurrentPlayer:= ;// the player # inbetween the [] to start with=, ususally set in the const
Thats the way i do it, some people do it differently :/
Jagex_Fagex
2006-03-11 16:03:08
kk thanks man, btw, i havent even heard of the tut, where can i find it?
EDIT: oh u mean the one in the manual, yer i just saw it, thanks anyway
but what does NumberOfPlayers(HowManyPlayers); do, can you explain that to me more clearly,? or is it as clear as it can be? like what is the difference between this line and the line above?
Sdcit
2006-03-11 16:23:18
NumberofPlayers sets the array length, declaring how many palyers[] there are
Jagex_Fagex
2006-03-11 16:28:57
then HowManyPlayers:= does what exactly? im srry its just so confusing
Jagex_Fagex
2006-03-11 17:04:55
dw, i read that template thing, its clear enough now. thanks for ur help
devilion
2006-03-14 17:32:25
i would help other players i would know how!
so it is a bit difficult