GetPlayerID - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerID (
/showthread.php?tid=613148)
GetPlayerID -
Ahmed21 - 25.07.2016
Hello, I've looked for the function "GetPlayerID" everywhere, but I couldn't find the SAMP wiki one (the one that made by ******), can someone give me the GetPlayerID please?
Re: GetPlayerID -
Ahmed21 - 25.07.2016
NVM found.
Re: GetPlayerID -
Dayrion - 25.07.2016
What the function does ?
Re: GetPlayerID -
Stinged - 25.07.2016
If it's the function that gets the id from a name, you can just use sscanf.
Код:
sscanf(name, "u", variable);
Re: GetPlayerID -
Ahmed21 - 25.07.2016
Quote:
Originally Posted by Stinged
If it's the function that gets the id from a name, you can just use sscanf.
Код:
sscanf(name, "u", variable);
|
Nope, I've made a command to unban a player, and the player is OFFLINE of course because he's banned.
So the admin must write a player name, not an ID.
Re: GetPlayerID -
Threshold - 25.07.2016
So why do you need to get a player's ID if he's offline...?