MySQL problem solution
#1

Hey,

I'm not sure if anyone else has had this issue, when a player registers an account you set there in game varibles and there MySQL varibles correct? Well basically i had a issue around this mostly with the fact when someone joined there admin level could be up to 9999 making them a god on my server.

If you have had this issue then this is how to solve.

Under your register part add your players vars for example mine are PlayerInfo,

pawn Код:
PlayerInfo[playerid][pAdminLevel] = 0;
            PlayerInfo[playerid][pDonator] = 0;
            PlayerInfo[playerid][pCheater] = 0;
            PlayerInfo[playerid][pBanned] = 0;
            PlayerInfo[playerid][pMuted] = 0;
            PlayerInfo[playerid][pWantedLevelsGained] = 0;
            PlayerInfo[playerid][pWantedLevel] = 0;
            PlayerInfo[playerid][pKills] = 0;
            PlayerInfo[playerid][pDeaths] = 0;
            PlayerInfo[playerid][pScore] = 0;
            PlayerInfo[playerid][pCash] = 0;
            PlayerInfo[playerid][pHealth] = 100;
            PlayerInfo[playerid][pArmour] = 0;
            PlayerInfo[playerid][pJailed] = 0;
            PlayerInfo[playerid][pPrisoned] = 0;
Its that simple!

If this helped please leave a comment below, if it didn't please don't comment "Not Usefull" or anything of the sort, this was just a problem i had so i decided to share with you all.

Thanks,

-Michael.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)