When Using Position Saving
#4

I think I see the problem with the coordinates not being loaded properly...

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


Messages In This Thread
When Using Position Saving - by AphexCCFC - 23.01.2013, 03:30
Re: When Using Position Saving - by Scenario - 23.01.2013, 04:14
Re: When Using Position Saving - by AphexCCFC - 23.01.2013, 04:49
Re: When Using Position Saving - by Scenario - 23.01.2013, 05:09
Re: When Using Position Saving - by AphexCCFC - 23.01.2013, 05:30
Re: When Using Position Saving - by AphexCCFC - 23.01.2013, 05:54

Forum Jump:


Users browsing this thread: 1 Guest(s)