MySQL Help
#1

I am using G-Stylez plugin and whatnot, and I don't know how to save/load players like the filesystem use to... Here, I'll just show you.

The filesystem save looks neat and such... 1 Line for every part of it. It's easy to read.
Код:
				PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);
				PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
				format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
				format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
				format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
				format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pRegistered]);fwrite(hFile, var);
				format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
				format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
				format(var, 32, "Experience=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
				format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(hFile, var);
How would I got about doing this for mysql?

If you just explained 1 line, I could obviously get the rest. As they are all very similar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)