Riiicardoo Posted October 15, 2011 Author Share Posted October 15, 2011 Well guys, this tutorial teaches you how to fix the bug that is in 2.0 and it was not sent the correct class id of the client, perhaps forgetting the robin or have found it unnecessary, andOpen the ServerLook for:```Function PlayerData(ByVal Index As Long) As Byte()```After:```Buffer.WriteLong GetPlayerPK(Index)```Place:```Buffer.WriteLong GetPlayerClass(Index)```Open ClientLook for:```Private Sub HandlePlayerData(ByVal ```After:```Call SetPlayerPK(i, Buffer.ReadLong)```Place:```Call SetPlayerClass(i, Buffer.ReadLong)```Now you can show the class name of the character in the status of the client using the code:```Class (GetPlayerClass (MyIndex). Name```credits:Marlos Range (Why Create and Provide) Link to comment Share on other sites More sharing options...
AlexKuttner Posted December 29, 2011 Share Posted December 29, 2011 So where do i put this code?```Class (GetPlayerClass (MyIndex). Name``` Link to comment Share on other sites More sharing options...
emblem Posted December 29, 2011 Share Posted December 29, 2011 It should be```Class(GetPlayerClass(MyIndex)).Name```But uhh, anywhere you want the class name to appear with code. There's no specific place to put it. Link to comment Share on other sites More sharing options...
AlexKuttner Posted December 29, 2011 Share Posted December 29, 2011 So why do i need it? Link to comment Share on other sites More sharing options...
emblem Posted December 29, 2011 Share Posted December 29, 2011 Honestly.You don't need this entire "fix" at all, unless you plan to display the player's class on the client somewhere. :P(Which is what you use that last line for) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now