SA-MP Forums Archive
Tag Mis-match - 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: Tag Mis-match (/showthread.php?tid=323003)



Tag Mis-match - lewismichaelbbc - 04.03.2012

pawn Код:
new pName[24], PlayerFile[50];
    new Float:PX, Float:PY, Float:PZ;

    GetPlayerName(playerid, pName, sizeof(pName));
    format(PlayerFile, sizeof(PlayerFile), "Positions/%s.ini", pName);

    GetPlayerPos(playerid, PX, PY, PZ);

    PlayerInfo[playerid][PlayerX] = PX;   //This line
    PlayerInfo[playerid][PlayerY] = PY;   // This line
    PlayerInfo[playerid][PlayerZ] = PZ;  //This line

    dini_FloatSet(PlayerFile, "PlayerX", PlayerInfo[playerid][PlayerX]);
    dini_FloatSet(PlayerFile, "PlayerY", PlayerInfo[playerid][PlayerY]);
    dini_FloatSet(PlayerFile, "PlayerZ", PlayerInfo[playerid][PlayerZ]);
    dini_IntSet(PlayerFile, "Spawn", 2);
How can i fix them to remove this error?

Thanks


AW: Tag Mis-match - Campbell- - 04.03.2012

Where did you define these arrays?:

pawn Код:
PlayerInfo[playerid][PlayerX]
PlayerInfo[playerid][PlayerY]
PlayerInfo[playerid][PlayerZ]



Re: Tag Mis-match - Vince - 04.03.2012

PlayerX/Y/Z is not defined as Float.


Re: Tag Mis-match - RobotBox - 04.03.2012

pawn Код:
enum pInfo
{
    //other codes
    Float:PlayerX,
    Float:PlayerY,
    Float:PlayerZ,
    //other codes
}
Like vince said. PlayerX/Y/Z is not defined as Float.