30.07.2012, 00:15
No idea if it is string or params, but either way i can't get it to work..
I have 3 thing's set up, no idea what there called but yeah, it's for my LSPD Faction, command:
I made the text bold the 3 thing's I am on about, and underlined the line that it's all on, no errors or anything but when i type /r texthere - it says the rank so like: * (R1) : Texthere - For some reason the name doesn't show up?
Any help please, the name wont appear, although the rank and the text does
EDIT: Also if I changed the * (R%d) %s: %s to a %i or a %d it says 1, presuming because of the rank, so can anyone help?
I have 3 thing's set up, no idea what there called but yeah, it's for my LSPD Faction, command:
Quote:
CMD:r(playerid, params[]) { new sendername[MAX_PLAYER_NAME], string[160]; new lspdrank = PlayerInfo[playerid][pLSPD]; if(!(PlayerInfo[playerid][pLSPD] >= 1)) return SCM(playerid, COLOR_GREY,"You are not authorized to use this command"); if(isnull(params)) return SCM(playerid,COLOR_WHITE,"USAGE: /r [radio chat]"); GetPlayerName(playerid,sendername,sizeof(sendernam e)); sendername[strfind(sendername,"_")] = ' '; format(string,160,"* (R%d) %s: %s",PlayerInfo[playerid][pLSPD],lspdrank, params, sendername); SendLSPDMessage(COLOR_LIGHTBLUE, string); return 1; } |
Any help please, the name wont appear, although the rank and the text does
EDIT: Also if I changed the * (R%d) %s: %s to a %i or a %d it says 1, presuming because of the rank, so can anyone help?