13/11/2021 17:03
Código PHP:
stock PegarNome(playerid)
{
new name[MAX_PLAYER_NAME], underscore;
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
underscore = strfind(name, "_");
strdel(name, underscore, MAX_PLAYER_NAME);
return name;
}
stock PegarSobrenome(playerid)
{
new name[MAX_PLAYER_NAME], underscore;
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
underscore = strfind(name, "_");
strdel(name, 0, underscore+1);
return name;
}
Software Developer