Returning string of enum
#9

pawn Код:
enum a
{
    name[MAX_PLAYER_NAME]
}
new array[MAX_PLAYERS][a];

public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, array[playerid][str], MAX_PLAYER_NAME);
}

stock returnNAME_(playerid, const name[], const size = sizeof(name) )
{
     return format(name, size, "%s", array[playerid][str];
}
Kind of like the GetPlayerName function of SA-MP
Reply


Messages In This Thread
Returning string of enum - by hiok - 03.08.2013, 11:06
Re: Returning string of enum - by Konstantinos - 03.08.2013, 11:11
Re: Returning string of enum - by hiok - 03.08.2013, 11:14
Re: Returning string of enum - by hiok - 03.08.2013, 11:47
Re: Returning string of enum - by Edix - 03.08.2013, 11:55
Re: Returning string of enum - by hiok - 03.08.2013, 12:52
Re: Returning string of enum - by Edix - 03.08.2013, 14:08
Re: Returning string of enum - by hiok - 04.08.2013, 13:22
Re: Returning string of enum - by RajatPawar - 04.08.2013, 13:34
Re: Returning string of enum - by hiok - 04.08.2013, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)