25.10.2009, 15:37
You can use the string variable twice, no need to create the additional string as you can just:
This will save you 24 characters (98, 24 * 4).
Also this could cause issues if the string needs to be used more than once at the same time, small risk but could happen as it is global but aslong as it is formatted before it's used (each time) then there shouldn't be an issue unless I'm overlooking something.
pawn Code:
GetPlayerName....str....
format( str...."INFO: %s(ID: %i) has joined.", str....
Also this could cause issues if the string needs to be used more than once at the same time, small risk but could happen as it is global but aslong as it is formatted before it's used (each time) then there shouldn't be an issue unless I'm overlooking something.

