• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Function Get ID by name
#3
Use sscanf as mentioned in the previous post.

PHP Code:
IdByName(const name[])

{

? ? new 
playerid;

? ? 
sscanf(name"u"playerid);

? ? return 
playerid;


  Reply


Messages In This Thread
Function Get ID by name - by GospodinX - 2021-03-16, 01:34 PM
RE: Function Get ID by name - by Y_Less - 2021-03-16, 01:42 PM
RE: Function Get ID by name - by GospodinX - 2021-03-16, 04:22 PM
RE: Function Get ID by name - by Radical - 2021-03-16, 03:39 PM
RE: Function Get ID by name - by Y_Less - 2021-03-16, 04:30 PM
RE: Function Get ID by name - by GospodinX - 2021-03-16, 06:39 PM
RE: Function Get ID by name - by Pinch - 2021-03-17, 03:01 AM

Forum Jump: