Tag Mis-match
#1

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
Reply
#2

Where did you define these arrays?:

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

PlayerX/Y/Z is not defined as Float.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)