14.08.2010, 15:44
(
Последний раз редактировалось ipsBruno; 14.08.2010 в 16:41.
)
Quote:
Hiddos nice one but here an easier and faster version:
pawn Код:
|
@Ryder
pawn Код:
new pName[24];//MAX Caracters in Name is 24 no 20... (Correct (MAX_PLAYER_NAME))
GetPlayerName(playerid, pName,24);//Otimize (no called Function sizeof)
for(new i = 0, j = strlen(pName); i <= j; ++ i)//Otimize (no function called multiple times)
if(pName[i] == '_') pName[i] = ' ';//Otimize (No Use called function strfind)
//SetPlayerName(playerid,pName); // Optional
//printf("%s", pName);// Optional
DraKoN_S > DraKoN S
@Finn
Use instead of While, Loop