samp sscanf.
#1

Hello,

What sscanf simbol, u,r,i,s or what i need to use, that player can write a part of player name? but problem is, player can't write a player name, a last name, for ex:

Adam_Juzi

Ok, i do with sscanf.
new playerid;
Код:
if (sscanf(params, "u", playerid))
	{
return 1;
}
So, if i will write adam_ then command works, if i will write Juzi then it don't work... why?, and how to fix it?
Reply
#2

UPUP
Reply
#3

You can't fix it, you need to start from the beginning of the name.
Reply
#4

if(sscanf(params, "uis[80]", playerid))
Reply
#5

For future reference, check out https://sampforum.blast.hk/showthread.php?tid=120356 and scroll down to "Specifiers".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)