27.02.2010, 16:50
Hey,
I'm using this to split player RP name to Firstname and Lastname:
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?
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);
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?