11.06.2012, 14:25
All chat is fine except my /n command I decided to try add in to my gamemode. It's all black which is strange because the hex code isn't black. I've tested with other colors and come to the conclusion that somewhere my coding is wrong. Someone mind pointing out my error? Heres my code below, thanks in advance
Code:
CMD:n(playerid, params[]) { new tmpstring[164], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(sscanf(params, "s[128]", tmpstring)) { SendClientMessage(playerid, LIME, "ERROR: Usage /n [message]"); return 1; } else { format(tmpstring, sizeof(tmpstring), "(NEWBIE) %s: %s ", name, tmpstring); SendClientMessageToAll(GetPlayerColor(playerid), tmpstring); } return 1; }