SA-MP Forums Archive
error 017 - Symbol 'Player' is not defined - 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: error 017 - Symbol 'Player' is not defined (/showthread.php?tid=450550)



error 017 - Symbol 'Player' is not defined - Mitchy - 13.07.2013

Hello, it seems when I try to add -this- peice of code:

pawn Код:
format(Player[playerid][Ip],16,"%s",GetIP(playerid));
It shows this error code:

pawn Код:
error 017: undefined symbol "Player"
I have this enumeration:

pawn Код:
enum PlayerStatsEnum
{
    Username[24],
    Password[129],
    Ip[16],
    Money,
    BankSavings,
    Level,
    AdminLvl,
    Faction,
    FactionLevel,
    Birthday,
    Birthyear,
    Birthmonth,
    SpawnPoint,
    TutorialComplete,
    Accent[12],
    Experience,
    Kills,
    Deaths,
    ClothingSlot1,
    ClothingSlot2,
    ClothingSlot3,
    CarLicense,
    TruckLicense,
    MBLicense,
    Cell,
    CellNum,
    CarKey1,
    CarKey2,
    CarKey3,
    CarKey4,
    CarKey5,
    CarKey6,
    JailT,
    AjailT,
    FineTimes,
    ArrestTimes
}
And this variable for defining the 'Player':

pawn Код:
new Player[MAX_PLAYERS][PlayerStatsEnum];
Any ideas?


Re: error 017 - Symbol 'Player' is not defined - Rohlik - 13.07.2013

Have you "new Player[MAX_PLAYERS][PlayerStatsEnum];" under the includes/defines and above the publics ?


Re: error 017 - Symbol 'Player' is not defined - Mitchy - 13.07.2013

I deleted the script accidently so I will do that in future, thanks anyways


Re: error 017 - Symbol 'Player' is not defined - IceCube! - 13.07.2013

You asked the question 2 - 3 Hours ago...


Re: error 017 - Symbol 'Player' is not defined - Mitchy - 13.07.2013

Indeed, but whilst wiping my desktop the server was on it.

It's fixed now that I've re-scripted it.