20.01.2013, 21:49
Quote:
@DarkPower Why "_" after the variables? E.g "new sNick_" or "new iX__" makes no sense.
|
@Emmet_ - I totally forgot to use strfind -.- and why is strlen bad in loop?
And this way?
pawn Код:
stock getName(playerid)
{
new pName[MAX_PLAYER_NAME], ch = (0);
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
ch = strfind(pName, "_");
if(ch != -1) pName[ch] = (32);
return (pName);
}