SA-MP Forums Archive
Not record mhini - 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: Not record mhini (/showthread.php?tid=426197)



Not record mhini - Kuroki - 28.03.2013

Help fix code
recording only when the player is offline and that should be written when the game and offline

PHP код:
if(PlayerInfo[i][pLevel] == && PlayerInfo[i][pExp] == 1)
            {
    
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "%s.ini",sendername);
                new 
file ini_openFile(string);
                if(
file 0) print("no file");
                else
                {
                    
ini_getString(file"pDrug",string);
                    
format(stringsizeof(string), "%s.ini",string);
                        new 
file2 ini_openFile(string);
                        if(!
file2)
                        {
                    
ini_setInteger(file2"FriendMoney",100000);
                    
ini_setInteger(file2"Text2",3);
                    
ini_closeFile(file2);
                    
ini_closeFile(file);
                    
SendClientMessage(iCOLOR_ORANGE"1");
                    }
                }
            } 



Re: Not record mhini - milanosie - 28.03.2013

More explanation would be welcome.
I don't have a clue what this code is supposed to do if you're not going to explain me.



Re: Not record mhini - Kuroki - 28.03.2013

Quote:
Originally Posted by milanosie
Посмотреть сообщение
More explanation would be welcome.
I don't have a clue what this code is supposed to do if you're not going to explain me.
I make the referral system, and when the player was invited shakes Level 3 is given to who invited variable text 3
But the variable is only given when the person is offline


Re: Not record mhini - Kuroki - 28.03.2013

help


Re: Not record mhini - Kuroki - 28.03.2013

help me


Re: Not record mhini - Kuroki - 30.03.2013