28.08.2011, 16:20
You don't need all of that actually, the one with strfind was good. This here is even faster I guess:
pawn Код:
stock getPlayerFirstName(playerid)
{
new
szName[MAX_PLAYER_NAME],
iPos
;
GetPlayerName(playerid, szName, sizeof(szName));
iPos = strfind(szName, "_");
if(iPos != -1)
szName[iPos] = EOS;
return szName;
}

