Another way to load data from MySQL?
#1

I am using this way:


( This is just one variable to load )
pawn Код:
while(mysql_fetch_row_format(query,"|"))
    {
        mysql_fetch_field_row(savingstring, "bank");
            PlayerInfo[playerid][bank] = strval(savingstring);
    }
It works when you login with barely nothing set on account.. but when you set your account fully it dosen't load data.

Since I have just started with MySQL, I was wondering if there is a better way to load data? there is around 82 variables to load (Integer | Strings | Floats)
Reply
#2

Try with threaded querys (BlueG plugin.)
Reply
#3

Use sscanf to load data from Mysql, that's the best way for me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)