SA-MP Forums Archive
About 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)
+--- Thread: About mysql (/showthread.php?tid=401980)



About mysql - Tanush123 - 24.12.2012

Well i thought of changing up the loading, how can i check this
pawn Код:
OrgInfo[i][Member] = strval(field[4]);
I dont want it to detect which row is it on the phpmyadmin, i want it to detect by it's name on phpmyadmin "Member"


Re: About mysql - Typhome - 24.12.2012

When you use MySQL R7 by BlueG, then you can use this function:
cache_get_field_content(0, "Member", string), OrgInfo[i][Member] = strval(string);

If you use R5/R6, then i dont think so.


Re: About mysql - Tanush123 - 24.12.2012

Well i use R6, i get lot of problems with R7


Re: About mysql - Typhome - 24.12.2012

Try this:
if(mysql_fetch_row_format(Data,"|")) {
mysql_fetch_field_row(Field, "Member"); OrgInfo[i][Member] = strval(Field);
}


Re: About mysql - Tanush123 - 25.12.2012

what do i do with variables without strings,
pawn Код:
mysql_fetch_field_row(str, "AdminLevel"); PlayerData[playerid][AdminLevel] = strval(str);
didnt work


Re: About mysql - Tanush123 - 26.12.2012

24 hour bump.