mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[raknet] Match PacketLogger::UserIDTOString(...)
This commit is contained in:
parent
02246f4d7d
commit
317708c377
@ -302,7 +302,31 @@ char* PacketLogger::BaseIDTOString(unsigned char Id)
|
||||
#endif
|
||||
char* PacketLogger::UserIDTOString(unsigned char Id)
|
||||
{
|
||||
// Users should override this
|
||||
switch ( Id )
|
||||
{
|
||||
case ID_PLAYER_SYNC:
|
||||
return "ID_PLAYER_SYNC";
|
||||
case ID_VEHICLE_SYNC:
|
||||
return "ID_VEHICLE_SYNC";
|
||||
case ID_PASSENGER_SYNC:
|
||||
return "ID_PASSENGER_SYNC";
|
||||
case ID_AIM_SYNC:
|
||||
return "ID_AIM_SYNC";
|
||||
case ID_RCON_COMMAND:
|
||||
return "ID_RCON_COMMAND";
|
||||
case ID_RCON_RESPONCE:
|
||||
return "ID_RCON_RESPONCE";
|
||||
case ID_STATS_UPDATE:
|
||||
return "ID_STATS_UPDATE";
|
||||
case ID_WEAPONS_UPDATE:
|
||||
return "ID_WEAPONS_UPDATE";
|
||||
case ID_SPECTATOR_SYNC:
|
||||
return "ID_SPECTATOR_SYNC";
|
||||
case ID_TRAILER_SYNC:
|
||||
return "ID_TRAILER_SYNC";
|
||||
case ID_UNOCCUPIED_SYNC:
|
||||
return "ID_UNOCCUPIED_SYNC";
|
||||
}
|
||||
return "Unknown";
|
||||
}
|
||||
char* PacketLogger::IDTOString(unsigned char Id)
|
||||
|
Loading…
Reference in New Issue
Block a user