/r help - string/params - stuck
#1

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:
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;
}

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?
Reply


Messages In This Thread
/r help - string/params - stuck - by RLGaming - 30.07.2012, 00:15
Re: /r help - string/params - stuck - by Kindred - 30.07.2012, 00:19
Re: /r help - string/params - stuck - by RLGaming - 30.07.2012, 00:21
Re: /r help - string/params - stuck - by Kindred - 30.07.2012, 00:25
Re: /r help - string/params - stuck - by RLGaming - 30.07.2012, 00:29
Re: /r help - string/params - stuck - by Kindred - 30.07.2012, 00:32
Re: /r help - string/params - stuck - by RLGaming - 30.07.2012, 00:34
Re: /r help - string/params - stuck - by RLGaming - 30.07.2012, 00:48
Re: /r help - string/params - stuck - by Kindred - 30.07.2012, 01:36
Re: /r help - string/params - stuck - by RLGaming - 30.07.2012, 01:56

Forum Jump:


Users browsing this thread: 2 Guest(s)