SA-MP Forums Archive
Mysql Loading Data [+REP] - 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: Mysql Loading Data [+REP] (/showthread.php?tid=588438)



Mysql Loading Data [+REP] - MohammedZ - 08.09.2015

Ok I have tried a lot to load data when a player logs in but I always fail.

Ok so I would be thank ful +rep for who can make a loading system for me using this enum



enum PCNR_user
{
pPass[129],
aLevel,
vLevel,
pCash,
pScore,
pKills,
pDeaths,
pHoldups,
pCrimes,
pFined,
pArrests,
pTakedowns,
pTickets,
pRope,
pPaintCan,
pScissors,
pKits,
vLock,
Helper,
hHelper,
pWarns,
pKicks,
pJoins,
pMaterials,
Banned,
jTime,
FloatArmour,
FloatHealth,
pWanted,
cTime,
Drugs,
PlayerBombs
}
new PlayerInfo[MAX_PLAYERS][PCNR_user];


Re: Mysql Loading Data [+REP] - SickAttack - 08.09.2015

https://sampforum.blast.hk/showthread.php?tid=588163'

Search for "mysql_vehicles" or "mysql_weapons" and get an idea from there.


Re: Mysql Loading Data [+REP] - MohammedZ - 08.09.2015

I have tried already every tutorial and failed, I would be thankful if someone made it to me


Re: Mysql Loading Data [+REP] - Dorito - 09.09.2015

You just need to read the tutorials thoroughly and change the variables, enums and queries to your liking. There's a lot of documentation out there, you just have to find it. You aren't going to learn how to do something if you get other people to do it for you. The first MySQL registration and login system I used was: https://sampforum.blast.hk/showthread.php?tid=574714.


Re: Mysql Loading Data [+REP] - BroZeus - 09.09.2015

Show us what have you done so far and the error(s) that you are getting with that code.