Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving players
#1
Seems like playerI doesn't have any reference

Code:
Dim I As Long

For I = 0 To MAX_PLAYERS
    Call SavePlayer(I)
Next I

I think that's all you'd really need to save all the players.
Does it just not work, or do you get an error of some sort?
Reply
#2
Do you get the RTE 9 using your code, or the code I gave you to use?
Reply
#3
Im pretty sure the Index is above 0. So try this:

Code:
Dim I As Long

For I = 1 To MAX_PLAYERS
    Call SavePlayer(I)
Next I
Reply
#4
You need to check if that player(index) is online or not xD

Code:
Dim I As Long

For I = 0 To MAX_PLAYERS
    If IsPlaying(I) Then
        Call SavePlayer(I)
    End If
Next I
That should work Smile

EDIT: sry, I didn't read all your last post Jobs...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)