#1

Why doesn't this code load the skin from my database, it sets it at 0, CJ.

pawn Код:
format(szQuery2, sizeof(szQuery2), "SELECT pX, pY, pZ, Interior, VWorld, Level, Money, Skin FROM "SQL_ACCOUNT_TABLE" WHERE user = '%s'", pName(playerid));

                while(mysql_fetch_row_format(szQuery2,"|"))
                    {

                        mysql_fetch_field_row(loading, "pX"); User[playerid][pX] = strval(loading);
                        mysql_fetch_field_row(loading, "pY"); User[playerid][pY] = strval(loading);
                        mysql_fetch_field_row(loading, "pZ"); User[playerid][pZ] = strval(loading);
                        mysql_fetch_field_row(loading, "Interior"); User[playerid][Interior] = strval(loading);
                        mysql_fetch_field_row(loading, "VWorld"); User[playerid][VWorld] = strval(loading);
                        mysql_fetch_field_row(loading, "Level"); User[playerid][Level] = strval(loading);
                        mysql_fetch_field_row(loading, "Money"); User[playerid][Money] = strval(loading);
                        mysql_fetch_field_row(loading, "Skin"); User[playerid][Skin] = strval(loading);

                    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)