24.12.2011, 06:39
Im trying to make it so when a player purchases Herpes it says: %s has gotten herpes and died. Next time don't buy a hooker! Im having troubles getting it to say the players name. I know its really simple but its showing weird symbols for there name.
pawn Code:
new string[128];
GetPlayerName(playerid, MAX_PLAYER_NAME);
if(GetPlayerMoney(playerid) > 99999999)
{
GivePlayerMoney(playerid,-99999999);
SetPlayerHealth(playerid, 0);
format(string, 128, "%s has gotten herpes and died. Next time don't buy a hooker!",playerid);
SendClientMessageToAll(COL_ADMIN, string);
}else{SendClientMessage(playerid, red, "Error: You do not have much money.");}
}