split or for?
#3

Fastest

pawn Код:
new name[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid,name,sizeof(name));
new pos = strfind(name, "_");
if(pos != -1) name[pos] = ' ';
format(string,sizeof(string),"Hi %s",name);
SendClientMessage(playerid,some_color,string);
https://sampwiki.blast.hk/wiki/Strfind
Reply


Messages In This Thread
split or for? - by ErF - 26.02.2010, 17:36
Re: split or for? - by Jefff - 26.02.2010, 17:43
Re: split or for? - by dice7 - 26.02.2010, 18:10

Forum Jump:


Users browsing this thread: 1 Guest(s)