23.06.2018, 15:34
Quote:
You call strlen many times.
pawn Код:
|
i changed to
PHP код:
public OnPlayerText(playerid, text[])
{
for(new i = 0; i < strlen(text); i++)
{
if(text[i] == ' ') continue;
if(text[i] < 'a' || text[i] > 'z') break;
else
{
text[i] = toupper(text[i]);
break;
}
}
return 1;
}