Skip to content

Commit

Permalink
Fixed saving of available points
Browse files Browse the repository at this point in the history
  • Loading branch information
davenonymous committed Apr 3, 2010
1 parent 605adad commit 7afb80c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripting/attributes.permanent.clientprefs.sp
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,10 @@ public OnClientDisconnect(client)
SetClientCookie(client, db_Attribute[eID], sResult);
}
}

new iAvailable = att_GetClientAvailablePoints(client);
new String:sPoints[5];
Format(sPoints,sizeof(sPoints),"%i",iAvailable);
SetClientCookie(client, db_points, sPoints);
LogMessage("Writing %N cookie: available points = %i", client, iAvailable);
}

0 comments on commit 7afb80c

Please sign in to comment.