Name help..
#1

Hey,
I'm using this to split player RP name to Firstname and Lastname:
pawn Код:
new TextName[MAX_PLAYERS][24];

GetPlayerName(playerid,pName[playerid],24);
sscanf(pName[playerid],"p_ss",TextName[playerid]);
tName[playerid] = Create3DTextLabel(TextName[playerid],COLOR_WHITE,0.0,0.0,0.0,50,-1,1);
But how should I use TextName[playerid] to show the first name only?
Let's say I connect with name Wayne_Wan I tried TextName[playerid][0] - it shows Wayne, but TextName[playerid][1] shows ayne.. how should I use it to show Wan?

Reply


Messages In This Thread
Name help.. - by SiJ - 27.02.2010, 16:50
Re: Name help.. - by ¤Adas¤ - 27.02.2010, 17:01
Re: Name help.. - by smeti - 27.02.2010, 18:54

Forum Jump:


Users browsing this thread: 2 Guest(s)