Level not save
#1

Helo, i make a bonus command and is work very good. One problem, when i enter again in game i have level 1 and again i can use /bonus.
HOW TO FIX TO SAVE LEVEL WHEN EXIT
PHP Code:
CMD:bonus(playerid)
{
    if(
PlayerInfo[playerid][pLevel] == || GetPlayerScore(playerid) == 1)
    {
        
SendClientMessage(playerid,-1,"Deoarece ai folosit comanda /bonus ai primit:");
        
SendClientMessage(playerid,-1,"-LEVEL: 3");
        
SendClientMessage(playerid,-1,"-MONEY: $5.000.000");
        
GivePlayerMoney(playerid,5000000);
        
PlayerInfo[playerid][pLevel] = SetPlayerScore(playerid,3);
    }
    else
    {
        
SendClientMessage(playerid,-1,"Trebuie sa ai minim level 1 pentru a folosi aceasta comanda.");
    }
     return 
1;

Reply


Messages In This Thread
Level not save - by Calinut200 - 24.06.2019, 19:03
Re: Level not save - by Symon - 24.06.2019, 19:51
Re: Level not save - by SiaReyes - 24.06.2019, 19:53
Re: Level not save - by SnakePit - 24.06.2019, 20:06
Re: Level not save - by Symon - 24.06.2019, 20:10
Re: Level not save - by SnakePit - 24.06.2019, 20:16

Forum Jump:


Users browsing this thread: 2 Guest(s)