SA-MP Forums Archive
Skin - 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: Skin (/showthread.php?tid=305969)



Skin - Abreezy - 24.12.2011

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);

                    }