[Include] PlayerName
#9

Quote:
Originally Posted by legodude
Посмотреть сообщение
most funnctions can be made out of definnes, improves speed of script. jjust a hint
other than that, quite useful
Where are you talking about? There are only 2 functions, one of it can be used as a macro (it actually can, but it's quite big and that doesn't really fit to macro's) and the other one, well, that's not "most functions".
pawn Код:
stock NewName(playerid, const name[])
{
    new str[MAX_PLAYER_NAME];
    format(str, MAX_PLAYER_NAME, "x_%03d_", playerid);
    SetPlayerName(playerid, str); //Eg. if you have the name 'kwarde' and you want 'Kwarde', normal SetPlayerName won't work. This'll fix it
    SetPlayerName(playerid, name);
    GetPlayerName(playerid, playerName[playerid], MAX_PLAYER_NAME);
    return 1;
}
#define SetPlayerName NewName

stock PlayerName(playerid)
    return playerName[playerid];
#define Name PlayerName
Do you see what I mean?
Reply


Messages In This Thread
PlayerName - by Kwarde - 04.07.2011, 19:51
Re: PlayerName - by XpDeviL - 04.07.2011, 19:54
AW: PlayerName - by Forbidden - 04.07.2011, 20:10
Re: AW: PlayerName - by iPLEOMAX - 04.07.2011, 20:23
Re: PlayerName - by Kwarde - 04.07.2011, 20:29
Re: PlayerName - by FireCat - 04.07.2011, 20:42
Re: PlayerName - by Kwarde - 04.07.2011, 20:45
Re: PlayerName - by legodude - 05.07.2011, 09:34
Re: PlayerName - by Kwarde - 05.07.2011, 12:23
Re: PlayerName - by juraska - 05.07.2011, 13:46
Re: PlayerName - by SmileyForCheat - 05.07.2011, 13:49
Re: PlayerName - by Stepashka - 05.07.2011, 13:57
Re: PlayerName - by Hiddos - 05.07.2011, 14:01
Re: PlayerName - by Stepashka - 05.07.2011, 14:06
Re: PlayerName - by Hiddos - 05.07.2011, 16:01
Re: PlayerName - by System64 - 05.07.2011, 17:03
Re: PlayerName - by SPAWN_METAL - 05.07.2011, 17:45

Forum Jump:


Users browsing this thread: 3 Guest(s)