SA-MP Forums Archive
sscanf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf (/showthread.php?tid=423030)



sscanf - audriuxxx - 16.03.2013

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.


Re: sscanf - tyler12 - 16.03.2013

Code?

You got to use the _ in the name.


Re: sscanf - kamzaf - 16.03.2013

pawn Код:
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.