Ok. Understood.
You have what looks like a typo in the last IF statement:
Code:
if(get_user_frags(id) >= get_pcvar_num(sgt_kills) && containi(newName,"Sgt.") == -1)
{
if(containi(newName,"Cpl.") != -1)
{
replace(newName,32,"Col.","Sgt.")
set_user_info(id,"name",newName)
client_print(id, print_chat, "Congratulations Corporal! You are now promoted to Sergeant!")
}
else
{
format(newName,32,"Sgt. %s",newName)
set_user_info(id,"name",newName)
client_print(id, print_chat, "You are now promoted to Sergeant!")
}
}
Should Col be Cpl in the following?:
Code:
if(containi(newName,"Cpl.") != -1)
{
replace(newName,32,"Col.","Sgt.")