09.02.2011, 19:40
pawn Код:
stock rpname(playerid)
{
new cname[MAX_PLAYER_NAME];
GetPlayerName(playerid, cname, sizeof(cname));
strdel(cname, strfind(cname, "_", true) > 0 && strfind(cname, "_", true) < MAX_PLAYER_NAME, MAX_PLAYER_NAME);
return cname;
}
pawn Код:
printf("%s", rpname(playerid));
I was wondering if what I'm trying to do is even possbible?
And if it is, what am I doing wrong?