if (VetInfo[i].PlayerName == Get_Player_Name_By_ID(ID)) {
Very bad
Use:
const char *pName = Get_Player_Name_By_ID(ID);
if(!pName) return 0;
if (strcmp(VetInfo[i].PlayerName.c_str(), pName) == 0) {
...
}
delete []pName;
int Points = VetCheckPoints(Get_Player_ID(sender));
float health = Commands->Get_Max_Health(obj);
float armor = Commands->Get_Shield_Strength(obj);
if (message == CUSTOM_EVENT_VEHICLE_ENTER) {
Bad
Use:
if(!Commands->Is_A_Star(sender)) return;
int Points = VetCheckPoints(Get_Player_ID(sender));
float health = Commands->Get_Max_Health(obj);
float armor = Commands->Get_Shield_Strength(obj);
if (message == CUSTOM_EVENT_VEHICLE_ENTER) {