12.06.2013, 08:48
Is it possible to send the percent sign (%) ingame? As I want to say something is '25% complete'
format(countstr, sizeof(countstr), "%d%%", percent);
SendClientMessage(playerid, -1, "The script is 40%% complete.");
// Shows in-game as: The script is 40% complete.
public OnPlayerText(playerid, text[]) { new perstring[128], PlayerNM[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerNM, sizeof(PlayerNM)); for(new percentsign; percentsign < 256; percentsign++) { if(text[percentsign] == '%') text[percentsign] = '%%'; } format(perstring, sizeof(perstring), "%s: %s", PlayerNM, text); return 1; }