PDA

View Full Version : sscanf


audriuxxx
16/03/2013, 11:46 AM
Hi,

I use sscanf, but i have create command /sms, all is fine, but you can't use player last name i use 'u' simbol, for part of name.

tyler12
16/03/2013, 11:47 AM
Code?

You got to use the _ in the name.

kamzaf
16/03/2013, 04:23 PM
GetPlayerNameEx(playerid) {

new sz_playerName[MAX_PLAYER_NAME], i_pos;
GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
return sz_playerName;
}

Removes the "_" in the players name while getting it.

Besides that if you could give the code to what your trying to get it it would be more easier.