Lower Case (tolower) 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: Lower Case (tolower) Help (
/showthread.php?tid=496597)
Lower Case (tolower) Help -
alishvasis - 22.02.2014
Hi Alls.How To Use Lower Case (Tolower) On My Login and Register System ? This is my Login/register System OnPlayerConnect Pls Put on My system
+Rep TnX I Need Thisss
Code:
new file[128]; // This get's the lenght of the file
GetPlayerName(playerid, pname, sizeof(pname)); // This get's the player name with the lenght of the player name
format(file, sizeof(file), savefolder,pname); // This describe's where to save and how to save it
if(!dini_Exists(file)) { // If the file exist
SendClientMessage(playerid,COLOR_RED,"[INFO]{FFFFFF} Pls Register.");
ShowRegisterScreen(playerid);
dini_Create(file); // Create the file
dini_IntSet(file, "Score", 0); // Set's "Score"
dini_IntSet(file, "Money", 0); // Set's "Money"
SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
SetPlayerCash(playerid, dini_Int(file, "Money"));
}
else {
SendClientMessage(playerid,COLOR_RED,"[INFO]{FFFFFF} Pls Login");
ShowLoginScreen(playerid);
SetPlayerScore(playerid, dini_Int(file, "Score"));
SetPlayerCash(playerid, dini_Int(file, "Money"));
}
Re: Lower Case (tolower) Help -
xo - 22.02.2014
pawn Code:
format(file, sizeof(file), savefolder,tolower(pname));
Re: Lower Case (tolower) Help -
alishvasis - 22.02.2014
Xo I Use This But Not Load Money And Score In linux Vps.Pls Help Me i Need This
Re: Lower Case (tolower) Help -
alishvasis - 22.02.2014
Help Me I Need This I Realy Need This TnX
Re: Lower Case (tolower) Help -
xo - 22.02.2014
Rename all your ini files of users on your host ( if it's linux ) move to the users dir and
rename 'y/A-Z/a-z/' *
Re: Lower Case (tolower) Help -
alishvasis - 22.02.2014
Quote:
Originally Posted by XO
Rename all your ini files of users on your host ( if it's linix ) move to the users dir and
rename 'y/A-Z/a-z/' *
|
THankS + Rep (You must spread some Reputation around before giving it to XO again) I Rep You AS Soon