23.01.2013, 05:09
I think I see the problem with the coordinates not being loaded properly...
You're treating them like an integer. strval is for turning a string into an integer, not a float. Use floatstr().
Reference: https://sampwiki.blast.hk/wiki/Floats
In regards to the skin not being loaded... is "SkinID" used anywhere else? You may want to use "pSkinID" in the enum.
pawn Код:
mysql_fetch_field_row(savingstring, "PlayerPosX"); PlayerVar[playerid][pPosX] = strval(savingstring);
mysql_fetch_field_row(savingstring, "PlayerPosY"); PlayerVar[playerid][pPosY] = strval(savingstring);
mysql_fetch_field_row(savingstring, "PlayerPosZ"); PlayerVar[playerid][pPosZ] = strval(savingstring);
Reference: https://sampwiki.blast.hk/wiki/Floats
In regards to the skin not being loaded... is "SkinID" used anywhere else? You may want to use "pSkinID" in the enum.