SA-MP Forums Archive
error 001: expected token: "-identifier-", but found "-integer value-" - 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 001: expected token: "-identifier-", but found "-integer value-" (/showthread.php?tid=449152)



error 001: expected token: "-identifier-", but found "-integer value-" - xXitsgodzillaXx - 07.07.2013

pawn Код:
enum PInfo
{
    Name[60],
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
    pScore,
    pRegular,
    pRank //Line 178
}
new SInfo[MAX_PLAYERS][PInfo];
error

Код:
C:\Documents and Settings\Owner\Desktop\test\gamemodes\DDPTDM.pwn(178) : error 001: expected token: "-identifier-", but found "-integer value-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Any Ideas on how i can fix this?


Re: error 001: expected token: "-identifier-", but found "-integer value-" - SwisherSweet - 07.07.2013

Show us the variables


Re: error 001: expected token: "-identifier-", but found "-integer value-" - Dragonsaurus - 07.07.2013

pawn Код:
enum PInfo
{
    Name[60],
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
    pScore,
    pRegular,
    pRank //Line 178
};
new SInfo[MAX_PLAYERS][PInfo];



Re: error 001: expected token: "-identifier-", but found "-integer value-" - xXitsgodzillaXx - 07.07.2013

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
Show us the variables
pawn Код:
new gClass[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
The rest of the variables are just random spawns.


Re: error 001: expected token: "-identifier-", but found "-integer value-" - SwisherSweet - 07.07.2013

I mean where you set there name bla bla where it says getplayername


Re: error 001: expected token: "-identifier-", but found "-integer value-" - xXitsgodzillaXx - 07.07.2013

pawn Код:
stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}
Should be this correct?