View Single Post
Author Message
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-24-2017 , 11:48   Server crash when using a pre-defined prefix
Reply With Quote #1

Hello,
My server just crashes when I use a prefix via a variable.
Example code:
PHP Code:
String:cmenuPrefix[] = "[{blue}WardenMenu{default}]";
CPrintToChatAll("%s %t"cmenuPrefix"Noblock off");
SetConVarInt(noblock1truetrue); 
If I do just like this then it doesn't crash and works like normal:
PHP Code:
CPrintToChatAll("%t""Noblock off");
SetConVarInt(noblock1truetrue); 
Does anyone know why it just crashes? It crashes on every method where I have a print a message with the prefix. I'm using colors.inc for the colors.
__________________

Last edited by condolent; 06-24-2017 at 13:32.
condolent is offline