Mysql_Fetch_Feild - 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_Fetch_Feild (
/showthread.php?tid=263508)
Mysql_Fetch_Feild -
Rokzlive - 22.06.2011
I have this line to define a player variable.
pawn Код:
mysql_fetch_field("level", pdata); playerdata[playerid][level] = strval(pdata);
This is a strikenkids line, how would i do this in gstylez?
I get this error when using gstyles include instead of strickenkids.
Код:
C:\Users\Nickolas\Desktop\new\gamemodes\3.pwn(365) : error 035: argument type mismatch (argument 1)
Re: Mysql_Fetch_Feild -
PrawkC - 22.06.2011
https://sampforum.blast.hk/showthread.php?tid=56564
Look at the natvies.
Re: Mysql_Fetch_Feild -
Sascha - 22.06.2011
I'm not familar with gstylezz' plugin however this might help you
https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_field
mysql_fetch_field(fieldindex, string[], connection);
as far as I get it you don't need to enter the name but the index.. so instead of "level" e.g. 5 or so (which would be the 6th field >> start counting from 0)
string = the string to store it in (so leave it like you currently have it)
and in case the connection handler is required, too, you'll need the connection variable...
I hope that could help you a little bit, I have no real clue, too, though tbh
Re: Mysql_Fetch_Feild -
Donya - 22.06.2011
pawn Код:
mysql_get_field("level", pdata);
Re: Mysql_Fetch_Feild -
Rokzlive - 22.06.2011
Ahh ty donya.