MYSQL - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MYSQL (
/showthread.php?tid=178086)
MYSQL -
vection - 20.09.2010
I am using mysql system.
I have somthing like this:
pawn Код:
new row[1024];
new ExplodeSplit[210][32];
mysql_fetch_field_row(row,"|");
explode(ExplodeSplit, row, "|");
SendClientMessage(playerid, COLOR_PURPLE, "Account Begins to load..");
strmid(PlayerInfo[playerid][pNick], ExplodeSplit[0], 0, strlen(ExplodeSplit[0]), 255);
strmid(PlayerInfo[playerid][pKey], ExplodeSplit[1], 0, strlen(ExplodeSplit[1]), 255);
format(var, 32, PlayerInfo[playerid][pLevel], ExplodeSplit[2]);
PlayerInfo[playerid][pAdmin] = strval(ExplodeSplit[3]);
PlayerInfo[playerid][pDonateRank] = strval(ExplodeSplit[4]);
PlayerInfo[playerid][gPupgrade] = strval(ExplodeSplit[5]);
PlayerInfo[playerid][pConnectTime] = strval(ExplodeSplit[6]);
PlayerInfo[playerid][pReg] = strval(ExplodeSplit[7]);
PlayerInfo[playerid][pSex] = strval(ExplodeSplit[8]);
PlayerInfo[playerid][pAge] = strval(ExplodeSplit[9]);
PlayerInfo[playerid][pOrigin] = strval(ExplodeSplit[10]);
PlayerInfo[playerid][pCK] = strval(ExplodeSplit[11]);
PlayerInfo[playerid][pMuted] = strval(ExplodeSplit[12]);
PlayerInfo[playerid][pExp] = strval(ExplodeSplit[13]);
PlayerInfo[playerid][pCash] = strval(ExplodeSplit[14]);
PlayerInfo[playerid][pAccount] = strval(ExplodeSplit[15]);
PlayerInfo[playerid][pCrimes] = strval(ExplodeSplit[16]);
PlayerInfo[playerid][pKills] = strval(ExplodeSplit[17]);
I need some way to split it to somthing like this: new ExplodeSplit1[50][32];, new ExplodeSplit2[50][32], new ExploadSplit3[50][32];
Why, Because i cant use new ExplodeSplit[210][32]; the server just stuck in this command.
So how i can split it ?
Re: MYSQL -
vection - 21.09.2010
bumppppppppppppp