Mysql_Fetch_Feild
#1

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)
Reply
#2

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

Look at the natvies.
Reply
#3

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
Reply
#4

pawn Код:
mysql_get_field("level", pdata);
Reply
#5

Ahh ty donya.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)