Getplayerid
#4

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
that's wrong, you don't understand the function osama, you need to do something like this:
new RDZ = GetPlayerIdFromName(''RogueDrifter'');
this will return the id of the player called RogueDrifter and save it in the variable called RDZ.
So your code should look like this:
PHP код:
CMD:myid(playeridparams[])
{
    new 
str3[80], GPIDname[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,sizeof(name));
    
GPID=GetPlayerIdFromName(name);
    
format(str3sizeof(str3), "Your Id Is:%i"GPID);
    
SCM(playerid, -1str3);
    return 
1;

Thanks !
Reply


Messages In This Thread
Getplayerid - by Osamakurdi - 04.01.2018, 13:36
Re: Getplayerid - by pollo97 - 04.01.2018, 13:43
Re: Getplayerid - by RogueDrifter - 04.01.2018, 13:47
Re: Getplayerid - by Osamakurdi - 04.01.2018, 13:50
Re: Getplayerid - by SyS - 04.01.2018, 15:04
Re: Getplayerid - by Infra - 04.01.2018, 15:16

Forum Jump:


Users browsing this thread: 2 Guest(s)