Paste ID into Name
#1

Hey Community...

Here i go again with another question:
Today i just tried to paste the Id of the Player into his name, and used this code:

Код:
public OnPlayerSpawn(playerid)
{
new CurrentName[MAX_PLAYER_NAME];
new CurrentID;
new NewName[128];
GetPlayerName(playerid,CurrentName,sizeof(CurrentName));
CurrentID = GetPlayerID("CurrentName");
format(NewName,sizeof(NewName),"%s[%i]",CurrentName,CurrentID);
SetPlayerName(playerid,NewName);

return 1;
}
It doesnt give me Errors or warnings, but the problem is, that it doesnt work :/
Pls tell me what i did wrong!

Greetings from Germany,
DeathOnaStick
Reply


Messages In This Thread
Paste ID into Name - by DeathOnaStick - 06.08.2009, 18:11
Re: Paste ID into Name - by JaTochNietDan - 06.08.2009, 18:13
Re: Paste ID into Name - by DeathOnaStick - 06.08.2009, 18:14
Re: Paste ID into Name - by kaisersouse - 06.08.2009, 18:15
Re: Paste ID into Name - by DeathOnaStick - 06.08.2009, 18:18
Re: Paste ID into Name - by JaTochNietDan - 06.08.2009, 18:18
Re: Paste ID into Name - by DeathOnaStick - 06.08.2009, 18:19
Re: Paste ID into Name - by kaisersouse - 06.08.2009, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)