SA-MP Forums Archive
Read. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Read. (/showthread.php?tid=485745)



Read. - MaDsON - 05.01.2014

PHP код:
        {
            switch(
PlayerInfo[playerid][pRank])
            {
            case 
1rank "Officer";
            case 
2rank "Detective";
            case 
3rank "Sergeant";
            case 
4rank "Lieutenant";
            case 
5rank "Captain";
            case 
6rank "Chief";
            default: 
rank "Cadet";
            } 
I want all of those to be pulled from a .txt document. How can I do that?

I'll have a folder in scriptfiles named; 'facranks'

so the directory would be facranks/lspd


Re: Read. - Joshua1 - 05.01.2014

Why not just put it inplace of your old ranks in your script? Or just put it in? It's less of a hassle that way.


Re: Read. - MaDsON - 05.01.2014

I just want it done that way in a .txt document.