SA-MP Forums Archive
strlower Help - 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: strlower Help (/showthread.php?tid=497859)



strlower Help - alishvasis - 28.02.2014

Hi Alls.I Use Strlower But Give me 1 error
Code :
Код:
stock UserPath(playerid)
   {
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername)); //  This get's the player name with the name length
    format(string, sizeof(string), PATH,strlower(playername));
    return string;
    }
and Give me :

Код:
undefined symbol "strlower"
How To Fix it?
i Put new strlower; But Give 4 Errors.Strlower Not Need For new ... Any One Can Fix It? TnX +Rep


Re: strlower Help - Ahmad45123 - 28.02.2014

do you have the include ?

if yes try Strlower -- Capitalize the S


Re: strlower Help - alishvasis - 28.02.2014

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
do you have the include ?

if yes try Strlower -- Capitalize the S
Which include?


Re: strlower Help - Jefff - 28.02.2014

Add on top

pawn Код:
strlower(string[])
{

    for(new i=0; string[i] != EOS; i++)
        string[i] = tolower(string[i]);

    return string;
}