Originally Posted by
guiismiti
How can I print a precached string?
In iprintln you can use only simple strings (like str="string").
And as I know, strings with & (don't know a real name of this strings. somebody tell me, please) you can only precache and use for HUDs.
So, you can:
1. Make a simple string and use iprintln:
Code:
game["spawnprotection"] = "^2Spawn protection ^1OFF^7";
self iprintln(game["spawnprotection"]);
2. Make a HUD with your precached string:
Code:
game["spawnprotection"] = &"^2Spawn protection ^1OFF^7";
precacheString(game["spawnprotection"]);
self.hud = newClientHudElem(self);
self.hud.x = x;
self.hud.y = y;
self.hud.label = game["spawnprotection"];