PM Command
#4

Ye, using GetIdFromName with sscanf makes absolutely no sense. When a (partial) playername is passed to sscanf, it automatically returns the player id (or INVALID_PLAYER_ID if not found). And Garsino: the r specifier works the same as the u specifier, with the exception that is does not accept NPC names.

pawn Код:
if (sscanf(params, "rs[100]", id, message))
Should work. Then use 'id' throughout your code and use GetPlayerName to get the name of the player.
Reply


Messages In This Thread
PM Command - by ludesert - 05.07.2011, 10:10
Re: PM Command - by [03]Garsino - 05.07.2011, 10:16
Re : PM Command - by ludesert - 05.07.2011, 10:17
Re: PM Command - by Vince - 05.07.2011, 10:47
Re : PM Command - by ludesert - 05.07.2011, 10:50
Re: Re : PM Command - by JaTochNietDan - 05.07.2011, 10:52
Re : PM Command - by ludesert - 05.07.2011, 10:54
Re: PM Command - by JaTochNietDan - 05.07.2011, 10:55
Re : PM Command - by ludesert - 05.07.2011, 12:13
Re: Re : PM Command - by [03]Garsino - 05.07.2011, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)