help with IRC
#6

@Niko_boy i didn't know he want PlayerName. Anyways you're doing a little mistake too. As i see you've put PlayerName which you need an array + "u" parameter is used for UserID not for names. so that returns the player ID not its name.
Edit + E.g:

Your example:

pawn Код:
if(sscanf(params,"ui",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
That could return 0 and 1 (0 Player ID and Channel 1)

Mine method could be
pawn Код:
new pname[MAX_PLAYER_NAME];
pawn Код:
GetPlayerName(playerid, pname, sizeof pname);
pawn Код:
if(sscanf(params,"s[24]i",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
That could return Myname and 1 (Player name and channel 1)
Reply


Messages In This Thread
help with IRC - by ColdRain - 28.04.2012, 11:08
Re: help with IRC - by Vince - 28.04.2012, 12:02
Re: help with IRC - by ColdRain - 28.04.2012, 13:01
Re: help with IRC - by TheArcher - 28.04.2012, 13:16
Re: help with IRC - by Niko_boy - 28.04.2012, 13:16
Re: help with IRC - by TheArcher - 28.04.2012, 13:23
Re: help with IRC - by Niko_boy - 28.04.2012, 13:25
Re: help with IRC - by TheArcher - 28.04.2012, 13:27
Re: help with IRC - by Niko_boy - 28.04.2012, 13:29
Re: help with IRC - by TheArcher - 28.04.2012, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)